Small bug fixes and cleanup

This is a cleanup via interactive rebase of the pull request : https://github.com/agl/pond/pull/132 

All the changes here are either small bug fixes or local code refactoring operations.

Debugging related : 
- https://github.com/burdges/pond/commit/d9b62a8d76a4a0551088f65b4f424127ad531b9d is handy when keying up local clients in developer mode.  
- https://github.com/burdges/pond/commit/4d34bb828c817ede749a48c069e6baa53f35c22d is also useful for debugging locally.

Small bug fixes : https://github.com/burdges/pond/commit/2652ae791cc7d3dabf53ce86d44cf0bb67fed02e and https://github.com/burdges/pond/commit/a5b404755ea229ba32802a403b3227ea435e96f1 

Refactoring commits :
- https://github.com/burdges/pond/commit/6376f031685d350a0b2a85122a0fecb4975d9eda and https://github.com/burdges/pond/commit/6457f0def45875f56926dca24e40a84bc1155e4c help with code readability but their main point is to expose a contactsSummaryRaw routine in the CLI that lets us list only a subset of the contacts based upon a filter function.
- https://github.com/burdges/pond/commit/c161040db098f936a1b2f0c46355085a0a1defee abstracts invoking vim in the CLI so that it can be used for other purposes besides sending a message. 
- https://github.com/burdges/pond/commit/e7bf591f6ea900f2a2836b26986776a5169e62c0 separates the process of creating a new draft from the composeUI function in the GUI, which improves code readability and allows the GUI more flexibility in sending messages. 

https://github.com/burdges/pond/commit/0228cc2a478e321b6fb9cc7557fe83d0a5c9e61d already appears in agl's master, so it can be ignored.  Ditto agl's commits obviously.