Move towards a resource-based URL router

Instead of handling HTTP queries directly, just return a list of resources that match a URI/request object.