fixed bug in how code is sent to peers in app editor

Ignore-this: 54bd29bd2d5184ed30cafeb03c3a50e2

darcs-hash:20140819225424-c21fe-e6c2f51c441831997e042c77c6f0503e3df33ec9
fixed init bug in app editor

Ignore-this: e5bc7f4eb2e798437f8695162a6b67f1

darcs-hash:20140819225508-c21fe-1f31249b84d9bfa71a8a6640740d0983a45ed59c