Added hash accessor methods, which are expected for interoperability with many other frameworks (such as Devise)

Change-Id: Ia5f0293576f4656c09097dc673e5103792784d9f