Fixes

Simplified connection code
Added the option to connect with AppId and AppSecret
Added Get-SPORealm command
Modified commands to use OfficeDevPnP.Core project