NGI_pipeline working version

It is still under testing but it should be pretty stable: @mario please review it carefully
I'm seeing a lot this little piece of code as well, something like ```check_charon_response``` would be useful here