Use new dialog API

... and make it work in Brackets 26.
Merge branch 'master' of https://github.com/Acconut/brackets-nodejs