reworked templates, removed flatpages

restructured all the templates, removed duplicated code, removed
flatpage support which was not being used, made both login and home
show the initial message and simplified sidebard handling.