Centralizing page size code, reading cookie

Centralizing duplicate code around the default page size.
Additionally, we now read the 'horizon_pagesize' cookie set for
the user in the settings panel to reuse the value across sessions.

Closes-bug: #1251456

Change-Id: I78b6c978926f53a598f89745c517b8083270e5ba