Added support for command line options --port, --version.