added factoid to ScriptModule.parse
added json data for PHP, as well as exposed this to Lua
changed init params for PHP and Python to not use so many regex patterns
changed PHP files so exit() and die() can be captured so json can be expected