smurf: Provide option for jsasplit to crop bad edges from output NDF

The old boolean TRIM parameter, is now an integer that can take three
values: 0 - no cropping, 1 - crop to the bounds of the input NDF, 2 -
crop to remove any bad borders from the output NDFs.