Added onchange function
Added local/global chooser UI
Changed Blockly.Variable.allVariables to take an optional scope.
Made variable blocks return a scope.