Fetch the list of git commits in an AJAX call instead of loading them right away... also refactored some duplicated code with setting up git data