Initial implementation of application structure refactoring. Externalizing logic from app.py by implemening initialization logic in __init__.py. Also separating url rules from logic by using pluggable class-based views