New API endpoint GET /events.

Returns the names of all currently registered events. Since events are registered by the clients, it might be useful for the server to be able to list all currently registered events if they are not known beforehand.