Process refactoring

This PR replaces #188.
Branch is now on directly on medInria repo.