Bring master inline with 4.0.x
Initial stab at porting to Python 2.7 and Apache 2.4.
Initial (full of errors) conversion of the docs to Sphinx