Merge pull request #23 from hnousiainen/master

worker/execute_shell: state machine with retries until success
worker/execute_shell: refactor state machine
worker/execute_shell: delay script deletion into cleanup to prevent race
worker/execute_shell: fix non-blocking read for script output
worker/execute_shell: implement timeouts for execute jobs