multiple fixes

- fixes issues where the case of URLs was changes
- fixes crash when multiple calendars should be deleted with their content
- reworked url resolving to be not so nasty anymore
- added some fixes useful for SOGo server and a url scheme for it, too.