Adding a utility function to parse keys.
Merge branch 'master' into resharding