Backported some constance to context.
Implemented entity references, (postback).