Move gitinfo function to importable module.

This will allow gitinfo reuse in sphinx.
Create sphinx project for the documentation.

And set it up for publishing via the gh-pages branch.