Fix client part of bug #9983

It is a fix of client part of the issue #9983. It adds a check that resource id drag-and-dropped from tree to parent field is not equal to current id of a resource. Also it makes used config options parentcmp and formpanel of #modx-resource-parent instead of just strings.