hack for firefox, and new options refreshrate and interval

adds a hack to make firefox refresh images from the stream. adds option refreshRate to set the interval in Hz. sets the refresh rate to the longest time between options refreshRate and interval.
replaces PR 25