tomcat.passwd function

This function replaces the $CATALINS_HOME/bin/digest.sh script
convert a clear-text password to the $CATALINA_BASE/conf/tomcat-users.xml format