Use different parts of storage_secret for generating doc passphrase and mac key.
Remove dependency on oauth