depend on pyramid 1.5dev+, change to using resource_url with route_name argument instead of using route_url with manually computed traverse