Cleaning up script packs, adding the script pack context namespace, and adding unit tests