Higher-order Components For Grid Programming