Implement ElementWhitespaceTrimmingStage.

Fixes issue #4.