Use callback api in tests
Simplify handling of options in grex.connect()