Api call implementation framework and implementations for about half the API
first cut full api implementation
remove newline
Add XML generation helpers