indexNexsons return value with errors.

Now returns {
    "indexed": [study ID array],
    "errors": {studyID: "error messages here"}
}
struct to aid diagnosing failures.