Added timeout feature to client connection process

With reference to adhearsion/ruby_ami#9