Api functions versioning

Proper pull request for https://github.com/ether/etherpad-lite/pull/1528

We need to decide between this or https://github.com/ether/etherpad-lite/pull/1638

1638 is imho a bit nicer, I will rebase that too and open a new PR.