Pluralization support

Adds String.prototype.pluralize and String.prototype.singularize.
Uses these to register resources and to look them up from the root.
Added dynamic registration of resources with the root.