includes code for defer2
adds resolve properties to $routeProvider