Add --version and print the version number in the logs on startup.
Instead of hardcoding 127.0.0.1, use INADDR_LOOPBACK