fixed Save optimization, did some refactoring on BE, fixed button status...

...es for both optimization and calibration

https://trello.com/c/kisaYeTE/372-save-optimization-does-not-do-anything

(should preferably be reviewed by someone who can check both BE and FE)
How do you feel about replacing `false` by `"not running"` & making an explicit check for "not running" in the template?

"not running" tells a bit more about whats going on and mixing booleans & strings feels a bit strange to me.