We've started adding more logic to the url functions of models to help generate some of these urls, especially on the database model. Check out: https://github.com/cloudant-labs/couchdb/blob/fauxton/src/fauxton/app/modules/databases/resources.js#L34-L42