Lots of doc improvements to src/rekapi.core.js.