[library] Simplify/improve API for deploying interceptors

Fixes #4