added pagination metadata to posts index JSON. made please_wait more robust