Added metadata field public_trial.
Added sorting for public trial.
Added language sensitive cache key.
Added public_trial upgrade step.
Added public_trial tests.