commiting a refactoring of all the old patterns as a cloudlets stdlib.