Lazy imports in root __init__.py

Not sure if this totally works. It's copied from https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/__init__.py.
cc #610