Similar implementation to the S-curves for the threshold scan
Description
The threshold scan implementation should be made similar to what is done now for the S-curve. The main scanning functionality should be moved to an rpc function that would be called by the AMC Manager.