Replace envAppend with envPrepend in ups table files.
Update copyright.
Run test only if at NCSA and with DB credentials.
Fix up global variable names.
Merge branch 'tickets/DM-1637'
Merge branch 'u/rallsman/DM-868'
Made DbSetup more generic so it can be used with modules other than cat.

DbSetup can now base the working directory off of any environment variable, not
just CAT_DIR.
testDbSetup.py did not work as pulled from the master and needed to be altered.
Changed to use lsst.log.