Add options for engine creation (eg IB Gateway address, dump mode,
client ID), and also add support for engine dumps during tests.