MERCURY-SPRING-0006: Main program for pre-creating data
It includes:
· A main class
· The main class is a Spring component
· It has a custom Spring configuration is 
Besides:
· Types can't have an index if the alarms don't have types within, it
fails for duplicate null
· @Configuration is a @Component too. A lot of issues due this. A @Main
annotation has been created for solving the problems. The best approach
is to have the configuration beans in the appropriate package
· An extra TypeRepository, a Spring Data one, was created for being
RESTifying easily with Spring Data REST. Now there are two beans of the
same class: @Repository("name") and @Qualifier("name") (for the
@Autowired) came to the rescue. See TypeRepositoryMongoDbJavaDriverImpl,
PreloadData and TypeRepositoryTest.
· Tests have been corrected to not let dirt in the DB.
MERCURY-SPRING-0007: Little fixes for Spring configuration of the main
program
· MongoDbRepositoryConfiguration moved to the repository package (it was
born as ApplicationConfiguration)
· Update the references
· @Main is no longer necessary. But I'm a soulful person.
· Types can't have an index if the alarms don't have types within, it
fails for duplicate null
MERCURY-SPRING-0008: Begin Spring HATEOAS
Nothing funcy here, just a configurer for link, but no invoked, and a
couple of @RestResource