Move context reaction to os_module.
Merge branch '2857' of github.com:openscholar/openscholar into 2857