New api: generate mappings from a descriptor object

Not ready to merge
function(id, cb)

if(!cb) {
cb = id;
id = null;
}