Add type hinting and PHPDoc blocks to ScriptHandler
Merge pull request #1746 from GawainLynch/hotfix/scripthandler-cleanup

Add type hinting and PHPDoc blocks to ScriptHandler