Complete rewrite of client side code with improved AJAX based navigation and API requests