Also fixed a number of data races.
Right now this just supports help and version, but will be getting new commands shortly.