Merge branch 'search-cleanup2' into permissions
Merge branch 'master' into permissions
Refactored publish functions with relations.
Bugfix.
Removed unused publish endpoint.
Refactored access control to annotations.
Changed annotations access control to new code.
Renamed readUsers to readPersons.
Abstracting out common access logic.
Extracted set access type code.
Set default access settings when setting to private.
Filter search results based on permissions.
Store cached files under a randomized name.

For some reason initializing database with sample data fails now when
using meteor-fs package. After creation of the file the file is not
always created. So asserts added fail. Using blocking original fs
operations works.
Bugfix.
Do not send information about publication cache for closed access publications.
Display message to the user if publication is missing or closed access.
Start using meteor-variable instead of custom verbose code. Fixes #310
Code style.
Factoring out search code.
Search for users and groups to add to the access control.