Many interleaved changes

- Support long poll
- Added a client
- Moved functions to standard library
- Now uses the same Python executable as parent process
- Result is now sent back with status
- Moved logfile to job.log
- Changed codegen library to astor