adding join method on appserver and making server command wait for app server to stop before returning
wrapping namespacejs require in a function so the constructor isn’t immediately executed when the module is required
commenting out some tests that hang now the serve command waits for the appserver to exit