Curve and Automation

First work to link GUI and API for Automations