Tidy some stuff in webdav events

Closes #97 
If you throw here, you'll have to catch the errors at all of its constructions.
Especially, mount() in main.js does nothing, which means that it silently fails if it's empty.