davStorage: bundled all ajax calls into single function