refactored maven-specific stuff out of the rest of galley and created a test harness to support it.