SLING-1069 Apply my patch for full-permutation of script registration and add Bertrand's integration tests and add a few unit tests