Generate siteinfo.json file in the bundle.
Factor out common API request code.
Add html.db to bundle.
Minor bugfixes: honor revid in parsoid fetch; handle nfo.json input.

nfo.json has a field named base_url, which is equivalent to the field
named baseurl in metabook.json.  Convert between them.