DRY the html helper functions.
Move the helper to its own module.
Refactor the code. Closes #325
PEP-8 Compliant
Refactor user JohnDoe into the class
Refactor user JohnDoe
Add new classes for refactoring the unit tests. Closes #325
Merge pull request #473 from PyBossa/issue-325-refactor-unittests

Issue 325 refactor unittests