Reformat templates and static files with 2 space indentation

Fixes #45
Can check blueprint name instead of URL prefix
Restructure to support init_app

Fixes #38
Load panels with werkzeug's "import_string"

Also add back caching of the loaded panel classes.
This prevents repeated warnings if there was an import error loading the
class the first time.