Changed command handling to post to Sync Context

instead of using CommandManager (WPF only)