Add support for Require and ScriptPacks

Currently a work in progress.