moved all models and api to one file. file almost ready to work'
moved api.js to server root