When bootstrapping fails, jenv files are now cleaned up.
Fixes LP: #1365144 bug.

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
ActionFinish in the API
address @fwereade's comments
line-wrap struct initialization
authentication refactor
simplify api results structs
helper isErrPerm
add authentication test
fix return type

Interestingly, the RPC call was perfectly happy filling the
params.BoolResults with the apiserver return of type params.ErrorResults

I expect that is because params.ErrorResults has the same Results field
with []params.ErrorResult instead of []params.BoolResult, and the only
difference between ErrorResult and BoolResult is that BoolResult has an
additional field for boolean results, and the apiserver code only
populated the Error field which was common between the two.
Modified function definitions. Removed conditional on err.
quibble fix
symmetric formatting
add more edge cases to the action finish auth/validation test
Merge pull request #668 from niedbalski/empty-string

cmd/set: Allow empty string fix #1348829

Fixes LP: #1348829 bug.

Since there is a plenty amount of charms accepting "" as a valid value and is a valid char, we should allow it.

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
Merge pull request #669 from katco-/lp-1361680-ignore-env-if-jenv

When bootstrapping fails, jenv files are now cleaned up.

https://bugs.launchpad.net/juju-core/+bug/1361680
Merge pull request #651 from johnweldon/actionfinished-api

ActionFinish in the API

Last mile of the ActionFinish function to the API