Script argument passing

Modify script execution behaviour from running a series of scripts in a single context, to executing a single script
with a set of passed arguments.

The motivation for this change is to develop declcam entirely in js without any special native code.