Optimize session management and upgrade eSockd library to 2.7.1

    Improve: issue#294 - [error] failed to start connection on 0.0.0.0:1883 - enotconn

    Bugfix: issue#291 - “./bin/emqttd attach …” cannot work