Reverted commit #94b2e53da6fd7a02e07fc7a1b1f60bc5ba27beb6. Not working in some situations.
Addendum to #21, same behavior in core as in admin.
Made all dependencies use a static from the module they depend on instead of relying on a string.