rename #select to #connect
add connecting flag
add connect() docs
add event tests and docs