libstorage: Add initial libstorage code