Added rudimentary 'join' support.

A reference to another entity can be ‘joined’ (hasOne or hasMany). It’s
a little dirty, but it works. A join map could be useful in future
iterations.