OPAL-2256 Refactored so that Rserve is used if available locally.
Code cleaning