handle all docpad events

it works on my project. I use underscorejs.org in the implementation of `createEventHandlers`