Parameterize the hostname and port

Parameterize tomcat hostname, port, username and password & deploy to tomcat using curl instead of simple copy.