Work on v2 Node.js control script

1. Source the correct util library
2. Add enough functions to util to make the following functions work: validate_run_as_user, set_app_state
3. Remove references to src_user_hook function