A Portable Middleware for Building High-Performance Metacomputers