added some stats-supporting methods to User
upgraded json gem due to security flaw; fixed deprecation notice in gettext_i18n_rails