Refactored to package structure

- Refactored into init, views and dbmodels
- Transitioned to Flask-SQLAlchemy
- Schemas for OAuth registration