change loginUser in api.php 

change loginUser in api.php
- to authenticate with the apache authentication
- delete useless ocsApiRequest
Ok! Can I simply commit another time or do i have to create a new branch and commit only one time? :)