Add relations support

HI, Lunaru

I tried to add relation support for mongorecord, pls check and to see if need merge.