Fixed quite a lot, added ``d_plugins`` and ``ctl_plugins`` options

Someone please merge and release!