Remove use of `indexOf()` from locale resolving

This removes the use of `Array.prototype.indexOf()`, an ES5 method, from this package. This also simplifies how the locale data is stored.

Relates to yahoo/intl-messageformat#76