Cleaned up layout of navigation bar items

Now navigation bar buttons are created programmatically and laid out
automatically by using UINavigationBarItem’s rightBarButtonItems
property, instead of manually spacing them.