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.