Fix #7
Upgraded to Pyramid 1.5

Also switched to relative imports where possible
Remove the unused testing stuff
Fix HTML generation

Construction of HTML failed when mixed bytes and unicode strings were
presented as element attributes, and the unicode strings contained
non-ASCII characters
Fix the relative imports