Return the exit code in ScriptExecutor

Solving issue #987

Now the exit code from the script in project.json need to be zero to ensure a successful build/pack/restore.
String resources in another PR is fine.

I think an acceptable error message for these would be `"The '{0}' script failed with status code {1}."` Does that work for you?