implement server-side on() events
#28

romaninsh wants to merge feature/callbacks into develop

We do not currently have an analysis of these two commits