Add support for AudioManager RingerMode.

Closes #988.