Refactoring code to MVC
Categories refactoring
Created simple REST api for categories