API for saving filter functions.
Frontend for saving filter functions.
Add command line flag to enable debug mode for rest_server.py