Changing route handlers, controllers and services to use promises