action: add support for actions when motion is detected. Added first Action: save a picture file.

Save a the captured jpg when motion is detected.
File naming not working yet....
capture: update "abort" flag to stop the capture thread.