Issue #201: WIP Refactor version negotiation.

I'll change `$version[0] == 'v'` by `preg_match('/^v[\d\.]+$/')` to be more precise.