Activity handler always returns page-size records or remainder

Code that produces activity log is moved to helper, dups are cleared

Closes bug 1259464

Change-Id: I42d53862ae00a849696b2e44a0881381c1c511e9