Make compatible with ownCloud 7
Use lower-case routes
Use $this->request->server to get the URL
Merge pull request #6 from LukasReschke/master

Make compatible with ownCloud 7