fixes #3090 - new puppetclass creation fails when adding smart variable

(cherry picked from commit 5aca6d3c91ac1e4576caf29a4fa0075cc41bcb3b)
fixes #3077 - locale was set to last language by default

(cherry picked from commit 219879c105c49c098945a5a991b61daf892f3567)
Fixes #3130 - Use the standard CentOS mirror

(cherry picked from commit 00ddc9db99d81efb9d64414f5001f29042996a58)
fixes #3120 - bumped version of apipie-rails

(cherry picked from commit 36c04c36a0b48e3cb3eda6b6ce4711de58c3441b)
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
(cherry picked from commit 21bf889acc5cb898a2f0888153e4aa46abe40cde)