Generalized code

Created a class structure for Entities with general routes, controllers
and templates