Adding a test for the scalding repl

Also includes some refactoring of the shell scripts to avoid duplication of code.
We should daisy chain common off a global path, see previous comment rather than sourcing it first then doing this.

Also these should be all caps constants