Expose WriteMode in JAPI. 

Fix issue #781.

Pass Configuration parameters to runtime operators in JAPI (+test)