support for line downsampling on the server
- redid sample data to use table format
- moved manual downsample example to server from cloud, using new line_downsample function
- redid line_downsample function with better function signature