Moved some example code out from /src and /tests

Moved example code from /src and /tests to  into /examples/src and examples/test

This covers java examples.  If we like this, I'll continue on with non-java targets and
testprojects into a new /testprojects/ top level directory.