bugfix: infinite loop on remove activity
The issue was being caused by removing objects from a collection which actually are not members of that collection. In Django 1.11 this fires post_remove
even though nothing was removed, triggering a cycle of backlinks
Includes other minor fixes, readability improvements and an extension to the unit tests. The fix is in the inbox handling in views.py