修复一些错误，见注释

1.change validate token to be a static func
2.fix the bug that some developer has no appid & secret
3.fix bug that xml->asxml will encode the chinese