change threading to a daemon thread, change common hash keys to 'constants', debug new code

git-svn-id: svn+ssh://organicdesign.co.nz/tools@959 5e2f9ad9-d71a-4c5e-ba50-a8a02cc83e87