[connectionagent] Generate interface code from the XML at build time.

Don't rely on a pregenerated copy, as it may not be noticed by someone changing
this.