refactor revel/revel to golib/revel