Update Cli.php

Support for params in request object.

Example: php cli.php index test param=one
Added the license.
Added parameter parsing.