Added support for Json Array data sources
added exception logging to the API controllers