[PATCH RFC 01/10] common: Move host-only logic in image-sig.c to separate file