SD-351 : Server and API support for the Activity stream

Refactor.