jQuery popstate handler instead of window.popstate.
Application.initialize refactoring.
Some code review and making TODOs.
Layouts renamed to frames.