Remove unused codes + refactory.
Merge branch 'dev' of https://github.com/huangpf/azure-sdk-tools into dev