Refactor baidu api, adapt to sina app engine.