Partially revert 17158f69 to keep history clean
Display current project's files/dirs in a third drop-down

Some redirects might be incomplete but they'll be part of #75.

Fixes #74.
Moved navigation-related code into its own file
Refactored common code