add constants to sugar

sugar module handles the collections and version-dependent values
ctx-socket circular import avoidance is no longer necessary
add header to backend.py