Initial implementation
Reiterated according to suggestion from André.
forgot semicolon as usual....
fixed according to comments
add util.js
rewrote average as a for loop
Changes in messages and report an event with the values.
Merge pull request #301 from GoogleChrome/encodeUsageTime

Check encode time for mandatory resolutions.