Fixed reference error and client broadcast events
Can restore from encrypted patches
Improved restoring from encrypted patches
Added interface for encrypting a document
Improved search & implemented i18n-js
Removed public/javascripts since we don't need them for i18n-js and moved a require
Fixed mime types in webdav
Fixed webdav mimes