Fast Rates for General Unbounded Loss Functions: from ERM to Generalized Bayes