[CR] remove redundant </head>
[CR] API changes, isolate context into rex/context pkg