route: Reset state if JOIN fails by any reason
library: Use copy addresses at state_move_to_dht

Otherwise there still possible several connections between two server
nodes in case of dual stack (and connections will be through different
networks). Also it leads to races with undefined behavior.
route: fixed deadlock in routes.cpp

m_mutex and n->state_lock lock order was broken
Now m_lock is always taken before state_lock
Merge pull request #528 from toshic/master

route: fixed deadlock in routes.cpp
Merge pull request #522 from euroelessar/master

Fix different error which may lead to route-list malfunction
v2.26.3.24
Python: speeded up elliptics.RouteList initialization.
Python: added comments to route.py.
Merge pull request #529 from shaitan/routes

Python: speeded up elliptics.RouteList initialization.
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
v2.26.3.25
Core: do not recalculate state weight after commands without data. If @sum is 0 it could not be increased via multiplying by 10 - skip this and use first state.
Merge pull request #531 from shaitan/routes

Core: do not recalculate state weight after commands without data. If @sum is 0 it could not be increased via multiplying by 10 - skip this and use first state.
XMerge branch 'master' of github.com:reverbrain/elliptics