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

Fixes urlmap issue with search app's map override from Organization
Refactored handler to use BaseHandler