Functionality is now filtered by date intervals. The rest api has now been
fully implemented for given functionalities.
A reasonable error is reported for malformed requests.