[SPARK-2531] [SQL] Make BroadcastNestedLoopJoin take into account a BuildSide

JIRA ticket: https://issues.apache.org/jira/browse/SPARK-2531
Hey @marmbrus -- now that codegen is in (congrats!), can you point to the places that I should look at?