Add support for posts-per-page query arg

@tlovett1 @mattonomics #reviewmerge