Move all P2P functionality to P2P Class

Signed-off-by: Andrey Shamis <andrey.shamis@intel.com>