Move gitapi and auth from app.js to their own files as services