Move uv_loop into the connection struct. it's no longer a global variable.