User deletion rework / Tighter constraints
This adds some constraints to activities / users so that we can be sure that we can safely delete users and activities in the future without everything breaking.
It will also prevent ap_id changes like those that happened with the SPC users.
This will DELETE activities without a related user. Old SPC posts are like this, for example. This should not go in before !682 (merged).