Make timeout configurable

We ran into a problem where the 90 seconds sometimes wasn't enough time to open the connection from our machines. We fixed this problem by reassigning the `TIMEOUT`-constant which is of course not ideal. 

Therefore I added a configuration parameter that allows you to change the default timeout.

Sadly I didn't find a place to integrate tests for this if you give me a pointer I can still add them. However the code is pretty straight forward and so tests may not be needed at all.