added support for names on resource routes, as well as nested resources.
fix argument order passing to url generator.