Fix dispatching on script type
Trials are cleaned, refactored shell-out

Squashed commit of the following:

commit 2821abe63ce78174a09791f990da3f2eb9a68136
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Nov 27 10:00:45 2013 +0100

    Passing on the full environment

commit 1c5e6bcb168da74d300cf68d4488023ef088c8b9
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Nov 26 18:00:47 2013 +0100

    Finished deleting trials including working dir ...

commit d1f05b1846f71b0b36dc8c85807fa02a7ccfb585
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Nov 26 16:26:31 2013 +0100

    Started work on trials cleaner ...

commit 2d78b667fb539675f8046e9b54c31ed4d5c89d92
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Nov 26 15:45:13 2013 +0100

    Trial has a :scripts key, every script is an atom  and updated

commit 20c62f4fd35b54dd37aa35c4fdddcd5d3ee151fd
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Nov 26 13:33:42 2013 +0100

    Use apache commons exec for executing a script

commit f61f083e787e2148ff42b8b62847cb33013bf96c
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Nov 26 12:54:17 2013 +0100

    Don't wrap the bash shell

commit 56b9431df00aa038b1a7ed0ac8fb623cdb01598f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Nov 26 12:51:21 2013 +0100

    Slightly simplified script ns

commit 67a01a064f5c2b9d79b5df700a48eefeccca7f35
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Nov 26 10:02:45 2013 +0100

    Extending json protocol; updating trial params in place

commit 43071976726f1aab7e680aa2729a3c2e8c27a560
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Nov 26 09:30:32 2013 +0100

    Git just returns working dir

commit ea94c6699c445e4c8412d222da70186d52708d35
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Nov 26 09:21:46 2013 +0100

    Trial ns: wrap report agent into trials-atom

commit 6744d45175da05b9e4d6d83f0f4e652c07184c5f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Sat Nov 23 22:31:10 2013 +0100

    Added TODO comment