Dynamically choose the port for the HTTP server, then load from it.

Also does away with loading files from /tmp/, because that doesn't work on iOS 8.0.