Moved authentication to separate model
Merge remote-tracking branch 'origin/master'