Properly map relations

Properly restore relations after committing data

I was not able to test this, but it should solve #1214 https://github.com/emberjs/data/issues/1214