Fix delegateEvents when called by Backbone.View.

This change allows events to be defined in an events hash on the prototype of the view,
as opposed to being passed as a hash directly in a call to #delegateEvents.

As per Backbone conventions the events property can be a hash or a function.