Moved main menu to head.html
Added scroll event listener and history rewriting
Major app logic additions and refactoring