storage: move slug functionality in from storage/zfsutil