Fix #9 : Little changes in how failures are handled allow errors to be fixed in an efficient way.

Some refactoring have been done on the LocalRepository to simply things.
To resume : the system is now simpler, more efficient and easier to maintains.