Merge pull request #10 from KushnirykOleh/rest

Add logout functionality, add basic rest support
add user data in json format through /rest/userProfile/{username}