Added generic key-value parser for parsing command line parameters.

Parsing key-value pairs from command line parameters is done in more than one place in the juju-core codebase, this package will conver that functionality without repetition.