Glance v2 implementation

Glance v2 implementation together with v1 in the same module.