Adds API procedure. Adds extensions, contexts and conditions.
Adds working xml output.

Need to fix XML dynamic and building of dialplans still.