Keys: Modified and added standardized toJSON/fromJSON prototypes

nice, I didn't know this `should.deep.equal` thing!