Add user agent sniffing for checking api priority.

mac clients will try to use moz audio first.