[#2] refactor authentication route, move functions to separate file
[#6] added angularjs module and example app