Greatly simplify monkeypatching code for radicale
Fix a bug where only basic auth would work