1. refactor script config out into small objetcs to be passed through the api
2. Remove the php info being passed as a parameter to the scripts as it will be part of the api(less clutter)