Implements resetMetadata helper
Merge pull request #371 from Simperium/issue/370-prevents-metadata-inconsistencies

Implements resetMetadata helper