Server-side code for listening to Backbone events