Register events with the server