Check that api methods return the correct result type
Code style update
Merge pull request #1286 from owncloud/ocs_api

Check that external api methods return instances of OC_OCS_Result