Added addtional javascript for a better navigating experience. Changed the navbar a bit.
Changed the global click handler so that menu closing can happen from anywhere.
Merged from master