Created bones of paint logic for Paths vs Groups

Created bones of paint logic for Paths vs Groups. paint() function will
detect if the target is a Path or a Group and recurse into the Group if
needed.