An API for managing user notifications in ShareLaTeX
For notification expiry to work, a ttl index on notifications.expiresFrom must be created:
notifications.expiresFrom
db.notifications.createIndex({expiresFrom: 1}, {expireAfterSeconds: (60*60*24*30)})