upgrade to livescript 1.2.x
fix tests
only connect socket when really needed in Ref