Have a version, with `--version` and in user agent

cc @KushalP 
I'm trying to scope the variable as close as possible to the only use (and also I think moving it would semantically change the scoping?)