AppCode: initial serialization optimization + performance tests tuned
(cherry picked from commit 184566f)
update Log4J to 1.2.17 (IDEA-107922) to avoid swallowing of interrupted exceptions (https://issues.apache.org/bugzilla/show_bug.cgi?id=44157)
(cherry picked from commit 9bcb4ca) [r=Peter.Gromov]