Removing unused files
Moved template file
Added middleware folder
Started moving repo functions to a new object.