extend motion hooks with `pre_scan()`, `post_scan()` methods
Asked by @papillon
Motion hooks should have a pre_scan()
and a post_scan()
method, that would
be called at the beginning of a scan, and after a scan for each motion hook of
axis involved in the scan.
This can replace the use of a scan preset with some flag passed to the motion hook in a more generic way.