refactoring ajax message, remove sendMsg/pickMsg, add postMsg; in callAPI/sendheartbeat, always encode param into json, server need decode json, which is much easier.