[!] Two urgent paint editor bug fixes.

1. Don't explode if the mouse leaves when dragged
2. Don't shrink-wrap the stage
3. Massive indentation overhaul in paint.js, because it had mixed line ending styles (some ended with \n\r, others with \n).