Fix wrong argument passing to open

The arguments are the arguments of the dialog callback, we should
use the outer function's arguments. This will cause open live
development in debugging mode the first time brackets is run.
Revert to upstream's CodeMirror2 SHA
Support getting projectId from server

Sometimes projectId is generated in server, so we need to update
it.