Introduce ow_add_definition function to API.

patch 3 & 4: corrections and bug fixes. For further testing. ~ he

patch 5: rebase

Change-Id: Ic4aa6546c74adc5c6f9c3ea2904cb5476f56ef88