Hcf middleware

Initial implementation of middleware to access HCF backend.