coerce amount into amount_cents
add type=payment to couchdb doc