add P2P Device handling primitives

For testing, it can be useful to be able to use the
P2P Device manually, add the ability to do that.
3 files changed