move allocateIds to request & generate docs.

Much nicer :) `getMethods` gets the methods for the module, `getLinks` gets the links to display in the sidebar.