Implement retcon API server

**WIP-ish**
yeah