Common bash elements moved to a common script

The common elements for each of the bash scripts in the module are now
pulled from common.bash. This requires the latest build of
Kraknet/krakws which guarantees that the PWD for a script will be its
module's directory.