Added all join stuff.

- next step: test all the join stuff
Added tests for join

- next: JoinCondition tests