add simple pagination support

Change-Id: Ifa6b3f338993d64e09aedb0310becbdc9f5beee3
let the user control how many items to show on a page

Change-Id: I6baeb6d667cc71eb6e506d04cc322c1ffa7c65ed
Limit the number of page buttons visible

Only show a few page buttons, including the first,
last, and current +/- 2.

Change-Id: I3d575d65ba6d8b2397f403aec5a2e06fefd7e513