add api comments

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