Refactor, eventually (hopefully soon) to allow for APIs other than REST to be documented.