Completely rewrote, improved the class.

Completely rewrote, improved the class. Accept Language parser now
preserves the order of language code preference (q) as per RFC 2616.