Added pagination.

Finished the list posts ui tests.