Fix for urlmap/app order issues and refactored to use BaseHandler
Exposes task_type to data