Moved (most) Transaction-related methods in Record to Transaction, added wrappers in Record.
Removed Record.findReferences() as it was broken.