refactoring of navigation
refactoring of navigation logic on main page

Added comments for design logic and potential future usage perception.

This app is a mobile app more than a web app and keeping that in mind will make some of the choices more clear. Everything still subject to change
Comittal of refactored branch info
fixed index syntax error
A little cleanup
cleanup
Merge pull request #1 from Norse900/InitialRefactoringOfNavigationAndLogic

Initial refactoring of navigation and logic