Lots of new documentation and some minor changes to mw.api and mw.database that out to be tested more thuroughly before the next release.