Refactoring on script files to support more common dev activities  

So that people can setup test environments, run mocked scenario tests, and do http record.