Added ability to specify a custom main class in Config.groovy.