JSMessages: add support for messages containing plural forms

This adds support for messages containing {{PLURAL:}} keyword. The module right now contains a set of rule for several supported languages. The existing plural support in MW language classes couldn't be used, as those are regural PHP functions. As there are only 20 different rules for plurals, I've decided to embed all of the in the JS file.