Hanging up calls

A call hangup branch, work-in-progress.  Standard8 requested review on the commits so far, so I'm creating a pull-request in order to make that easy.