Isolate navbar, implement flash messages

Flash messages implemented with help from http://stackoverflow.com/q/8705590