Port over all the global constructors to the new context.

Fixes #13.