Updating samples to work with the new remoting

*Not to merge yet!* Just for review.

I updated the samples to use the correct configuration for the new remoting. I am not sure that I covered everything, but I tried the samples in docs. Feedback is welcome.