Marlin+ramps+servo

The original version calls the servo with M300
this version calls the servo with M280
Since M codes are not processed at the same priority as gcodes this should prevent moving while the servo is moving by adding the M400 "finish all moves"