1) Implement remove data by value functions as it is requested in ADAMATLAS-341. 2) The downsample interval may not be set to 0, when downsample functions are used in dashboard REST implementation. This fixes the cause of the ADAMATLAS-342. Also check that sample interval is not equal to 0 in downsample requests to prevent bug ADAMATLAS-342. 3) In case if user provides long request, which encoding into a file name exceeds limits of file system, replace the request string by it's MD5 string. This fixes ADAMATLAS-343. 4) Fix bug appearing during calculation of aggregation functions from downsampled vector data. There was a mismatch between 32 and 64 bit timestamps. 5) Check downsample interval when function config contains aggregation functions. Fix issue ADAMATLAS-344.