Updates of namespaces and composer.json

* updated used namespaces
* moved example from test to example folder
* introduced composer.example.json
Since we support relative page urls I recommend using them to avoid base url duplication across all examples.