OS-3593: imgadm support for docker sources (part 1: refactor sources handling in prep for type=docker)