Add explicit log level macros.
Fix bug in EWAH bitstream finding.

This commit also streamlines some aspects of the bitstream implementation.