Changed api for main menu entries. Enhanced http error pages using a classed based views.

Also some small clean ups.
Review after phone call