fixed parse cookie error
added beforeSend callback for WeChatApp
Merge branch 'master' of git://github.com/twinh/widget