improved temp directory setup with tomcat
integrated tomcat single sign-on