add possibility to work with API versioning
working authentication,

TODO:
- add persistent login data
- refactor ajax request to exclude it from view directly to user model