Removed the global objects (error, missing) and created a clone of the schemas array in order to support a single instance of tv4 being run in a multi-threaded environment. Updated the tests to conform with a new return result.