Revamped XamChat sample for 2nd edition

Implementing via the book as I got