Refactor authentication examples

* [AGDROID-215](https://issues.jboss.org/browse/AGDROID-215)
* [AGDROID-216](https://issues.jboss.org/browse/AGDROID-216)
* [https://issues.jboss.org/browse/AGDROID-219](AGDROID-219)