MINDEXER-91: Add a Spring based example

Restructured the examples and added an illustration of how to do things with Spring.