Improvements to ExternalProcess API (getting rid of a potential
deadlock) and work on process wrapper for calling R.