Move groovy-all dependency to testCompile

This will prevent it from getting included in the release JAR
Fix bug when overriding weights for ASH/AGE events
Make implementing Configurable optional
Extract common objective code to base class