Moved the model.py to models folder and changed inheritance to use the framework model with mixins. Removed unnecessary routing/error handling files that are no longer used.