(JoinDialog): Functional implementation of former framework. Renamed Table1/Table2 to LeftTable/RightTable in all occurences.