Jkarni/docs merge

Puts all docs under a common directory.

Also factors out common conf.py config options; standardizes directory structures; allows for shared templates; updates the rake tasks to correspond to the changes.

Some commits were cherry-picked from master in the hope the merge with massive renaming would go more smoothly - before merging, this needs to be rebased so they don't appear twice in history.