small code cleanup
basic authorization implementation
tests refactoring
Merge pull request #18 from denzp/backend

backend: stage 2