Move editor model references to attached callback
Move editor model references to attached callback

I think this fixes the deserialization issue, curious if an editor
needs to be attached to the dom before the model can be referenced?

atom/github,atom/github,atom/github