optimze the auto deploy app to tomcat, add the auto scp tomcat log script, and fix some bugs