Initial import of commonj implementation.