Add endpoint for post revisions (v2)

Uses #169, but also works on CPTs.

Fixes #164, fixes #169.