fix up test dependencies. Make cli test delete files on startup to clean up after failed runs properly.
Remove use of the deprecated sessionMode on DefaultWebSecurityManager