Deduplicate get page code
Fix invalid doc block
Deduplicate preparation of the activity rows after getting them from the db
Merge pull request #28 from owncloud/scrutinizer-duplicate-getpage

Deduplicate get page code