Cert commands and multiple fixes

https://github.com/WindowsAzure/azure-sdk-tools-xplat/issues/796
https://github.com/WindowsAzure/azure-sdk-tools-xplat/issues/797
https://github.com/WindowsAzure/azure-sdk-tools-xplat/issues/739