fixed reconnection and added a max reconnection attempts configuration
Merge branch 'master' of https://github.com/Atmosphere/wasync