Refactoring connections and LibJackWrapper.