use new CloubedArgumentParser methods in cli
terminate threads gracefully when cloubed exits

Try to terminate EventManager and HTTPServer threads gracefully to avoid errors
and stack tracebacks in race conditions at the end of cloubed scripts. The new
mechanism relies on atexit module of the standard library.

Fixes #8 (hopefully)