Refactored config loading; added a hook for arbitrary extra CLASSPATH elements during testing.