Changed data format to `{ x, y }` where `x` is time in milliseconds

This PR includes the previous ones (some of them were rejected, so this might require manual merge).
Might as well use https://github.com/KnowSheet/Bricks/tree/master/net (copy-pasted code works just fine).