Gloo new api 2

Attempt at rebasing the gloo new API.

I have not alekn comment into account yet but I would prefer to make them after merging, does that make sense ?