- Refactored NSError handling so that where expected passed-in Error obj...

...ects were actually given back with errors from lower calls.

- Changed some lower-level calls to simply return nil on failure rather than unknown state in case of errors.

Note that there are a lot of formatting changes too, because I use clang-format and it automatically changes the format.