move initmime from beego.Run to hookfunc