peer, swarm: double check sender and current resource and add resource received by p2p on storage (fixes #14)