Update q1 + Engine bugfixes.

Q1 now prints number of results.

Made initial outgoing connections more robust.
Peers now try to connect() several times, until a successful connection is established.

Switched from async_connect to connect, for use with exceptions.
This shouldn't be a big deal since we used to manually block until the connection was established anyway.