[api] add the possibility to subscribe to events

You can subscribe globally or on project/package leel if you want to
get notifications (not yet implemented obviously) for events either
for
- none (overwriting more global defaults)
- project maintainership
- package maintainership
- all
[webui] add basic functionality to edit user subscriptions