Moved logo to the center again and use flex box

Few things were annoying when dealing with the navigation bar. The
changes should fix this.

Also created a new helper to check if the user is at :root or not
Fixed the navigation bar