Merge pull request #8 from tiriplicamihai/f/#7-rest-api-branch

Added REST API. (#7)
Added POST permissions for the API
Fixed security problems
Added test for unauthorized request for Owner. (#9)
Added Owner test for get request. (#9)
Added Owner test for unauthorized post request. (#9)
Added test for post request and fixed API. (#9)
Changed test methods names. (#9)
Added Owner test for unauthenticated put request. (#9)
Added Owner test for put request. (#9)
Added Owner test for unauthenticated delete request. (#9)
Added Owner test for delete request. (#9)
Added Stream test for get request. (#9)
Added Stream test for unauthorized post request. (#9)
Added Stream test for post request. (#9)
Added Stream test for unauthorized put request. (#9)
Added Stream test for put request. (#9)
Added Stream test for unauthorized delete request. (#9)
Added Stream test for delete request. (#9)
Added Keyword test for unauthorized get request. (#9)