XEP-0114: Added an example for component connection.

Hi!

While reviewing the changes to my pull request #13, I wrote this example application.
The example is based on basic.c program.