Script refresh (rebased onto dev_4_4)



This is the same as gh-1674 but rebased onto dev_4_4.

----

see https://trac.openmicroscopy.org.uk/ome/ticket/10416 for testing instructions

This one could be rebased since we made a push on scripting in 4.4.9