Add pages endpoint handler and tests

Tests adapted from PostsRequest tests; we may need to revisit them

Closes #26