Refactor CLI.

* Add Parser handler.
* Add Session handler.

Change-Id: I921cf91900a37fcdf07ac0875f8dde9addd44b63