Support associations with foreign key

Ripple didn't support foreign keys.

Now we can associate two objects with foreign key and also with inverse association.