net: setup state epoll_fd before sending AUTH

Auth commands was sent before state epoll_fd setup.
It causes a lot of timed out AUTH transasction.
Merge pull request #530 from toshic/master

Fixed fd leaks and AUTH timeouts problems