Add /version to server and check it in client.

Will help detect client/version skew and prevent e2e test from passing
while running a version other than the one you think it's running.
Probably worth doing that eventually (doesn't have to be this PR) since I think we will eventually split API + Client away from the "core" librararies, since many people will only want to build the client libs.