A bit of refactoring and renaming
Reverse the filters so that mapping is done last

This ensures that we don't bother mapping for test cases that have been
filtered out.
Add debug filter to dump out compiled test cases / steps