Restore stand-alone behavior to nifty.py

Created a default logger if the forcebalance module (and associated logger) cannot be imported.

WORK_QUEUE and WQIDS are global variables again.