examples: Add example for embedding terminal

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
examples: Add example for pinging the server

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>