Moved over old node-clickstack setup logic - untested