added event controller and api endpoint with tests
Merge pull request #4 from otaiga/events

added event controller and api endpoint with tests