1. Add ajax.php to handle ajax requests; modify header and footer to not emit HTML for the ajax calls.
2. Change trip controller to retrieve trip JSON from ajax call