[nim] Importing web-client code from the client-sim-engine code. Web pages, javascript and the like should be a client and should not be treated as one with the sim data crunching and instruction communicating engine