Don't refer to globals, use locals instead, and handle RTD_NEW_THEME = False sanely
Merge pull request #495 from alex/patch-1

Don't refer to globals, use locals instead, and handle RTD_NEW_THEME = F...
Add concept of supported releases
Refactor post-commit hooks to be more awesome.
Fix code
Reduce, reuse, recycle.
More log utils.
Point production media at HTTPS always.
Only parse remote branches in git.
Move sync_versions to apiv2
Fix tests
Add utils file to restapi
Prune remote git branch references
Spaces are good in commands
Bump theme
setting up frontend env for rtd2. leave dependcies in gitignore for now.
Merge branch 'master' into rtd2