Template for a stateful, single-page AJAX website