Remove code duplication in geogit-web-app/geogit-geoserver

This is a prerequisite for #602 so that there's no code duplication between the two projects, making it easily maintainable