AmiCap backend_v4

This is the API-only backend. See docs/v4-architecture.md for the design.