refactoring server
setting up main models and controllers
Merge branch 'server'