Add check to see how tests are being run
Move logging to forcebalance.ouput
Move global variables to forcebalance namespace

Work Queue globals WORK_QUEUE and WQIDS moved to forcebalance.WORK_QUEUE
and forcebalance.WQIDS (defined in forcebalance.__init__)

Also removed redundant logging classes in nifty which have already been
copied to src/output.py