Robust and thread safe v-rep remote API

Changes the way the V-REP IO works to prevent (most) of the communication errors.
When using the vrep_remote_api_call method the communication is also thread safe.