refactor server entry point
add disconnect handler. Close #3
Merge branch 'master' of https://github.com/confa/tic-tac-hack