Add code to allow uplaod to S3 and inject of subsequent URLs into scripts, refactor tests to split into acceptance, integration and unit