Add custom Mime and upgrade Rails to 4.1.beta