Sketch APIs needed for onion services

I'm sketching the APIs that we'll need for onion services, at various levels. So far I have initial sketches for these:

(Though I suspect some refinement is needed)

Once these are done-ish I should look over all the "TODO hs" items to see which imply even more code to write. :/

Edited by Nick Mathewson