Extra context: API + CLI

Fixes #12
Synthesizes parts of: #75, #100, #116, #161 and #199.
Thanks @fcurella, @aventurella, @emonty, @schacki, @ryanolson!
Although out of scope of extra context, this is a good catch. Excluding from the merge, but let's add it later as part of #273.