Push swift simulator code into client-side script

This moves the code from the test side (protractor) into a script that is loaded by the client. The advantage is that we send less code as string over the wire: before we sent the string representation of the `setContainers`, `setObjects` etc functions over the wire.

We now send smaller pieces of code and this code calls functions declared in a `swift-simulator.js` file. This means that you can set breakpoints in this code in a paused test.