[CA-Integration] fix for presence.
[CA-Integration] fix for presence.

One of the fix for presence.
Code to replace method type with REST_GET for REST_PRESENCE is moved up into common code.

Change-Id: Ib55d8536f41622649abd3c8d7df024590b6eb9c1
Signed-off-by: Sashi Penta <32e61e548782370d3f4bdf383408e385d155e3e6@intel.com>

WojciechLuczkow/iotivity,kartben/iotivity,WojciechLuczkow/iotivity,iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,santais/iotivity,santais/iotivity,santais/iotivity_1.1.0,santais/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,santais/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1.0,rzr/iotivity,kartben/iotivity,santais/iotivity_1.1,iotivity/iotivity,kartben/iotivity,iotivity/iotivity,rzr/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,rzr/iotivity,rzr/iotivity,santais/iotivity_1.1,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,WojciechLuczkow/iotivity,WojciechLuczkow/iotivity,kartben/iotivity,santais/iotivity_1.1.0,santais/iotivity_1.1,santais/iotivity,WojciechLuczkow/iotivity,WojciechLuczkow/iotivity,kartben/iotivity,kartben/iotivity,kartben/iotivity,santais/iotivity_1.1.0,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,iotivity/iotivity,rzr/iotivity,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,santais/iotivity,santais/iotivity_1.1,santais/iotivity_1.1.0,santais/iotivity_1.1,WojciechLuczkow/iotivity,rzr/iotivity,iotivity/iotivity,tienfuc/iotivity-democlient-snap,kartben/iotivity,santais/iotivity,iotivity/iotivity,santais/iotivity_1.1.0