Moved map creation, zoom to extent, and drag zoom functionality to the map service.  mapService.map should now be used instead of scope.map