Include resolve functionality for route events

A route can now handle and object

{
event : function($scope) {} ,
resolve : { '$scope' : $scope }
}

Will resolve the scope for the function at event time insteand of
passing it in via closure.