Fix FACS JSON reporting

* Newlines and tabs in report() killed the JSON representation and CouchDB server did not recognize nor store it as valid JSON.
* Solves issues #89 and #78.
* Incorporates @guillermo-carrasco reliability code for iriscouch.