Extracted code for main HTML template creation.
Created new module mainhtml.py and moved HTML generation code to the new module.
Made todomvc example work again
Merge pull request #127 from aschlapsi/server-refactoring

Server refactoring