Added ability to specify a port number when spawning an endpoint from the REPL.