Use distinct logging category for AbstractFileManagerPlugin etc.

Also add missing license header to debug.{h,cpp}
Add license headers to debug files.
Fixup signal signature
Fix signal connection (porting bug).

Use new-style syntax while at it.