Allow for null in place of undefined, and clean up samples to use minified js.

Merge branch 'local/null_or_undefined'