Apply again "IDEA-113684 Soft wraps insert additional spaces"

This reverts commit a4e94478d07e73aec98cef9eb04c265a67b22209.
Apply again "update stubs per filetype  reverted for 133 branch"

This reverts commit 231adec4e747c924509dc3bcc5683bcf538351d2.
don't call toString() without need to avoid garbage
(cherry picked from commit 75c030c) [r=Alexey.Kudryavtsev]
avoid unconditional trace
(cherry picked from commit 2e72fcc) [r=Alexey.Kudryavtsev]
don't create TIntArrayList(DEPTH_LIMIT) before we have clear indication that we might have a loop (parentId >= id)
(cherry picked from commit 5478fdf) [r=Alexey.Kudryavtsev]
avoid allocating sun.nio.cs.US_ASCII$Decoder when converting byte[] to String

: 1,267,720,880 (3%) bytes in 31,693,022 (3%) objects (avg size 40 bytes)
                 	sun.nio.cs.US_ASCII.newDecoder: 1,267,720,880 (100%) bytes in 31,693,022 (100%) objects
                 		java.lang.String.<init>: 1,267,673,560 (99%) bytes in 31,691,839 (99%) objects
                 			com.intellij.util.io.IOUtil.readUTFFast: 1,267,673,480 (99%) bytes in 31,691,837 (99%) objects
(cherry picked from commit cf71d6b) [r=Peter.Gromov]
refixing IDEA-57940 : the variants from other editors are suggested AFTER finishing variants from current file
(cherry picked from commit e76fe51) [r=Peter.Gromov]
Cyclic Expand Word leaves word highlighted (IDEA-115727)
(cherry picked from commit 29bb231) [r=Peter.Gromov]
IDEA-78206 Constructing 'mailto' link -> cannot resolve file 'mailto'
(cherry picked from commit 3166c04) [r=Konstantin.Ulitin]
- detect proper encoding for html5's <meta charset="charsetname">
- [performance fix] avoid (light) parsing of html content if there is no charset\s*= pattern inside the string
(cherry picked from commit 2f4be38) [r=Alexey.Kudryavtsev]
introduced cvs.roots.refresh.uses.vfs property (true by default) and uses its value to refresh cvs roots after update using vfs to avoid performance problems (IDEA-112132)
(cherry picked from commit 1958e9a) [r=Peter.Gromov]
no need to create strings of PsiFile's Text when we can avoid it or use charsequence
(cherry picked from commit d8ec59b) [r=Peter.Gromov]
avoid garbage creation in JDK7 due to calling StringBuilder.toString() that copies buffer now
(cherry picked from commit 03f7413) [r=Peter.Gromov]
save / load per project key hash codes
(cherry picked from commit c847d67) [r=Eugene.Zhuravlev]
lazy class loading for PtyProcess (r=Eugene.Zhuravlev), 2
(cherry picked from commit 85700e4)