Add join query builder and initial belongs_to/has_many support.