Javascript template bug fixes:   - preflight request no longer sent when no auth provided   - try block to catch JSON errors no longer catches errors in resolved promise   - standardized all errors to include 'status' and 'error'
Javascript template bug fixes:
  - preflight request no longer sent when no auth provided
  - try block to catch JSON errors no longer catches errors in resolved promise
  - standardized all errors to include 'status' and 'error'

kbase/typecomp,kbase/typecomp,olsonanl/typecomp,kbase/typecomp,olsonanl/typecomp,olsonanl/typecomp,olsonanl/typecomp