Update color scheme.

Also refactored code used to determine the current page.
Refactor logic in base.html template.