Extra context: API + CLI

Fixes #12
Synthesizes parts of: #75, #100, #116, #161 and #199.
Thanks @fcurella, @aventurella, @emonty, @schacki, @ryanolson!
I'm excluding this part from my merge-in-progress, to keep the extra context merge narrow-scoped enough to avoid conflicts.