Add /events endpoint

Needs a few last checks before being merged. (Will check in the coming days)