Added a security systeme, when creating a loop in the config. Close #25.

The elements in the loop a destroyed. We still need to add a notification mechanism and use a session variables for the configuration. So we don't lose the
bad config, but instead display an error message and ask the user to do the change.