Added PdbWrapper, fixed bugs in daemon and wrapper, and added skeleton for PdbWrapperTest