The flood of migrants arriving in Germany over the last year has optimists predicting a long-term economic boom, while pessimists worry about social tensions, high costs and the creation of a permanent underclass.