re-adds indirection for creating cache properties
adds application server check for generating JNDI name of resource reference in web.xml
moves generation of transaction manager outside of the if-else-clause
fixes #56 - adds support for changing the context root of the REST web app