Get mulaw and alaw working along with tests.

This change makes the alaw / mulaw feature functional.