Add coinbase payin support

Work in progess.

This is a redo of #2053 

> This pull request is too big. Gittip can only chew things in small bites. We need to break this up into smaller PRs.