Get capabilities at login time

Added methods to get OC version and capabilities through the OCS call `cloud/capabilities`.

The call is made at login time and is used to make the authentication at the same time, instead of using the webdav root which returned an unused web page.

Fixes #39 
Fixes #48 

TODO:
- [ ] add unit tests
- [ ] tweak output format