New api: generate mappings from a descriptor object

Not ready to merge
var body, see http://developers.anyfetch.com/contributing.html