fixes #2942 - plugin i18n support

This is first phase of plugins i18n support. More to come later:

 * Extraction from model classes
 * JavaScript extraction and support
fixes #2810 - more restful API v2 JSON responses in puppetclasses

NOTE: breaking changes to API v2 api/lookup_keys does not exist, replaced by api/smart_variables and api/smart_class_parameters