Pass the hostname and the port as command line args.

Make the server hostname and port number command line arguments. Update
the start script accordingly.
Move the start script to the example folder.