Reload AppDomain when script is modified

This is #331 from @lbargaoanu moved by hand. 
We couldn't cherry pick it anymore since the codebase has evolved so much since.

Fixes #330.