Adding a test for the scalding repl

Also includes some refactoring of the shell scripts to avoid duplication of code.
Will do about caps constants.

What do you mean daisy chain off a global path? I need to find the global path to actually find the common.sh to source.

Will send an update PR - let me know if that addresses your comments.