Merge pull request #6 from evgenymartynov/master

Bugfixes & API auth & unit tests