Load only available locales (if set in config)
The code has been adapted from rails-i18n gem.
Load Railtie only if Rails is defined
Rails is not specified as a runtime dependency so we should load the
plugin only when Rails is available.
remove obsolete i18n initializer
replace railtie with engine
Rename "locale" dir to "locales"