Implement retcon API server

**WIP-ish**