Enhance monitor_cli.py.

Added a command interpreter.

Can send json encoded packets for the following commands:
* list
* subscribe.
* unsubscribe.

Can still send raw ascii data to server using the 'raw' command. Data is
sent without any json encoding.