Fix race condition bringing up panel
More fixage due to mozilla-central changes
Set NODE_ENV to dev for now