Split requiredResources() into linkedResources() and embeddedResources()
This code splits all the resources into two sets, thouse that need to be
loaded from Krita database and thouse that are stored inside the resource
itself. This separation is needed for resource bundle creators: the bundle
should only save 'linkedResources()', and not 'embeddedResources()'.