Issue #201: WIP Refactor version negotiation.

@mateu-aguilo-bosch @mirzu ^^