[V2] Adds Redmine::Utils.random_hex for generating a random hex string

Rebased #395.