Renamed ntile back to windowSize, but ...

… query parameter is now w for windowSize and e for extent.
Fixed data property renaming (s/avg[xyz]/[xyz]/g)

I just removed min{x,y,z} and max{x,y,z} completely from the SQL query,
so avg{x,y,z} becomes just x, y and z.
Utilizing sensor counts
Minor changes
Doing the timestamp fix (-3600000)

Without it all the timestamps are shifted by one hour. Will fix later.