Issue #2071725 by kenorb: Added advanced features from 7.x into 6.x.
Removed hook_ctools_plugin_directory() implementation.

Shouldn't have been part of the previous commit since it didn't port the
rest of the panels support anyway.