Shift the SMAPI utilities into the shared library, so they can be used for all backends.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>