Cleanup: Wipe out the rest of the global variables

Fixes #60.
Cleanup: Remove unnecessary class

It is only used in one place, for accessing one of its two
static methods (that can be just converted to a regular function).
Minor HTML cleanups
HTML cleanup: Separate styling from content

Maybe in further cleanups the CSS can be moved outside of the template.
Import cleanups: Rearrange and remove unused

If we strictly follow the guideline is easy to understand the code.
Multiple cleanups

Remove unused code, use print as function, ...
Cleanup embedded HTML

This includes removal of \n and \r characters, which might affect
the output.

Includes reducing the variable assignments to simplify code and
using implicit line continuation.
Cleanup: Merge two functions

It makes the resulting function larger, but the code is easier to
follow now. Also will make easier to strip out to an external template.
Create search results using a Jinja template

Fixes #41.
Add gramps
Merge pull request #83 from unho/some-cleanups

Some more cleanups
Fixes to jinja2 integration
Catch exception when trying to add comments