Added sessions and caching. Added AJAX loading gif