Refactored path globals to use path_utils.py, improved almost all local and global scripts, added tests.