New angular services for git and pages. Controller refactored