MediaObjectImpl: Make sendCommand return a shared_ptr not a value

Change-Id: I0a80f038cea5aea5320353debdfc5b2aec30c297