JMobiPeer: A Middleware for Mobile Peer-to-peer Computing in MANETs