tomcat: allow the tomcat user to manage tomcat programatically

Useful for automated tests.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>