Removes debug message
Refactors get_valid_project to use one less sql query
Rearranges sidebar on views

Sidebar is placed by each view inside their sections, rather than outside by the
application layout, so that the section items can flow around it. Forms
especially got reworked to sit nicely next to it.

Also, buttons and fake buttons get their styles from .button-link class.