Refactor scripts

All communication now goes through dedicated Hadoop events.

We no longer rely on flags passed as script parameters. Now, every
Hadoop event includes the firing host's hostname.