added resourcelocator controller
added url generation
refactored resource locator controller, added root url generation
updated url to generate rl