add curl framework and add xiaomi oauth2.0 demo