Correctly prefix with app.path when tinyBugs is hosted in a subdirectory.
Minor clean up of HTML in templates.