Add synchronous interface to Connection, fixes #3.