Action results

*Action Results* in the State
==

An Action can now be `Fail()`'ed or `Complete()`'ed, and the relevant output will be stored in the `actionresults` collection in the juju db in mongo.

The reason, or the output will be written to the `ActionResult`, along with the details of the `Action`.

The prefix of the `ActionResult.Id()` will also encode the `Action.Id()` from which it was generated (which itself encodes the `Unit.globalKey()` that the `Action` was queued for.
Nitpick: bson.Regex would be cleaner here.  Also, shouldn't the prefix be escaped to be on the safe side? (regexp.QuoteMeta)

The line would become:

```go
sel := bson.D{{"_id", bson.Regex{Pattern: "^" + regexp.QuoteMeta(prefix)}}}
```