BAMPFA-298: Initial check-in of Andrew's code, with passwords/file paths redacted.