add priority handling to sort routes and add prefix option to application router to avoid need to specify full url path in all resources.