added new isJson and improved curl to support better reporting of underlying Datameer errors