After some initial bug fixes running the real server
ImSession -> WsSession. Move im.Client to policy package
Replace tornado's cmdline with argparse from standard library
Change some device_type to dev_type
Add initial test case for im sessions
Add duplicated session test
Need to disable broker testing mode for test_im
Add case for removing duplicated sessions
Add conflict handling for session update / removal
Need to get args from another variable instead of ArgParser
Possible bug in tornado: when using a coroutine to decorate another. Exceptions don't seem to get thrown from the inner coroutine to the outer coroutine
Bind OK
Unbind OK
Add test pair api
Fix bind_test
Test unpair
Fix close session
Fix unpair HTTP exception handling
Test scan
Simplify ws session handling