restructure files for better config handling

Now you can import the app module from other modules.
Not sure this is the ideal structure, inspired from:
http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ii-templates

another option is to follow the structure suggested here:
https://github.com/semirook/flask-kit