Support kill-session command

And some refactoring
Merge pull request #7 from syohex/support-kill-session

Support kill-session command