add api comments in file app.go
add api comments in file beego.go
add api comments in file config.go, controller.go, filter.go and flash.go