tests: allow mock server to set wire version and run in thread.

This will allow us to use the server from test code for basic things.
If you want to specify a handler, you can even reply to your requests
so that you can verify the response parsing.
tests: test minWireVersion and maxWireVersion during connect process.
tests: use / in regex test to verify there is no weirdness.