Adapt base template to HTML5 guidelines
Multiple minor bugfixes for frontend and backend