Updated the log output and added an error exit code if there are failures. Also added some gradle build stuff to make deploying a bit easier.