Flatten Functions / Get Identity

Created helper functions for flattening/unflattening object attributes, and implemented getIdentity from the dojo/store API.