Fixed a bug where ddocs end up in the activity collections, partly implemented allowed
Added read filtering of activities, more tests
Added simple email notification workflow, cleaned up logging