Extensive offline improvements to the nodejs implementation.