0.17.0 wip

has the expose-prototypes and deferred-leveldown PRs merged plus a bunch of style tweaks and minor fixups, nothing major but I think it's more readable and clean [citation required].