Moved app setup into package __init__

Followed 'Larger Applications' in the flask docs.