Fix integration test to work.

* Add hook where integration repositories are used to start the sbt server.
* Remove deadlock from SimpleConnector.
* Ensure loading a project and getting build structure works.