Restructured the test-API script to have a main() and accept arguments
for username,password, domain, port and secure port
Updated test-API to accept domain and port from command-line as well
Merge pull request #2 from Raseel-zymr/master

Added ability to pass arguments to script