The middleware for the DREAMaaS project