[nim] Cleaning up
[nim] Moving forward. Ammend me when done
[nim] sim_api.js now determines whether to append debug flags to requests to the client_sim_engine depending on an application-wide debug setting