added blueprints, added views.py, refactored routes