Make dx-bed-to-spans output parseable.
Fix exit code of dx-bed-to-spans.
Remove trailing whitespace.
Tests for BED/Spans and SAM/Mappings conversion.