action-set: a jujuc command for Actions to send values back to state

action-set permits action hooks to define an arbitrary map of params
which will be returned to the state server at the end of the Action,
or to specify --failed with an optional failure message.

DEPENDS: #617, #651 
can we maybe extract the bulk of the additions to this method into a new method?