More explicit support for return codes

This merge fixes #64 and adds more explicit handling for return codes from the command line tool `pyfarm-agent` which was missing before.