Added test case for new JPG mode.
Implementation in progress.
Whitespace changes only, for improved readability
The new "jpgProxy" mode works for qtController.
The new example jpg_proxy_test demonstrates this.
There seems to be an unnecessary level of state variables
for the URLs, but we try to conform to existing code by maintaining this.
JPG-mode works also for trell-version.
Committing with lots of debug stuff, will
clean up in next commit.
Fixed bug with ap/jpg mode switching. Cleanups.
Minor cleanups and commenting
Added code for timing of frame rendering, encoding and sending.
The different snapshots are identified, and they return their own type
and starting time so that the JS client can determine how long the
different snapshots actually take.
Fixed bug for jpeg and multiple canvases combined
autoSelect snap-type in progress
Heuristic choosing of method based on timings
Removed protocol from ajax downloading.

Makes index.html works independently of it being under http or https.
Merge pull request #125 from sintefmath/jnygaard_jpgProxy

Jnygaard jpg proxy
Merge remote-tracking branch 'origin/master' into jnygaard_ProxyDebugGUI

Merging to make it easier for a later pull-request asignee