Added persisted? and to_key methods to Proxy module