dbus-sdr: Refactor ipmiStorageGetSDR()
dbus-sdr: Refactor ipmiStorageGetSDR()

Move some of the code blocks into helper functions:
parseSdrIdFromPath() and constructSensorSdr().
This is to handle more types of sensors in the future.

Signed-off-by: Hao Jiang <c03956438b1a3663e91b73ce4883585eac48f841@google.com>
Change-Id: I58edfd9383985de6c5e5d9e1a42aa9135e449e78
Signed-off-by: Willy Tu <1e3df9bf0ac020872e0e39905eae1676fb455af4@google.com>

openbmc/phosphor-host-ipmid,openbmc/phosphor-host-ipmid,openbmc/phosphor-host-ipmid