Only overwrite local changes if current state == proxy

If the current state == proxy, it makes sense to overwrite all data with
the recently fetched values. However, when we are in a other state we
probably fetched a whole record before and maybe did some local
modifications that we don't want to lose.
Merge pull request #3 from Recras/hydratefix

Only overwrite local changes if current state == proxy