Modified test code to run on localhost or the target server.

Removed hardcoded host information.  Will add support for changing
ports later if necessary.