Connection manager to cs

Connection manager as well as its specs are written in coffescript now.