Eliminate Galaxy dependencies from lib/galaxy/tools/loader.py.
Should allow for reuse in command-line tools that operate on Galaxy tools. Updates for targetting Python 2.6+.