First go at pagination

@hippee-lee or @tsanko - can you guys take a look at this?