Support DarkPAN.
Remove unused code.
Merge branch 'darkpan'