add PutForEnvironmentAndCheckHash method

It's needed for the charm store.
Nicer, thanks.