Documentation fixes.
Gravatar template tags made Py2 compatible.
Added basic tests.