Load environment from file for worker process.

- Fix error handling.
- Add configuration file.
- Add work logger.
- Clean up logging.
- Refactor exchange/queue connection into block format.