Compatibility fixes for Python 3

Fixes #54 (at least the basic stuff, this is still a bit experimental)
Fix SQLAlchemy URL registration

The init_app() restructuring in 356e6c removed "load_panels()", but need
to add it back so panels like SQLAlchemy can register their URLs on the
Blueprint before it's activated.