Polish Gradle repackage
Extract resource handling to TomcatResources

Extract the nasty Tomcat resource handling reflection code to its own
class.
Polish