Code cleanup

1. Expanding the try / catch in the ScriptHost.Execute method, to catch
script compile exceptions
2. Slight refactoring to the api.script.app main Program.cs code file to
make the code easier to read
3. Minor code cleanup