Move ajax calls in versions app to OCS API calls

Added OCS API calls for the versions app and make the JS side use them

Fixes https://github.com/owncloud/core/issues/10571
the documentation of the implemetation states: 
````
Returns the versions of a given file
````

GET seems to be more reasonable - @PVince81 do I miss anything?