Add model.js script generation

@raymondfeng @bajtos please review
> I'm not sure we even want logging in the workspace.

Certainly not when Studio is running by an end-user.

I found request logging useful while developing Studio, but I can always temporarily add it back when needed.