AJAX fetch git commits

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.

Trello Card URL: https://trello.com/c/cqJexYrl