add PutForEnvironmentAndCheckHash method

It's needed for the charm store.