LOG4J2-716: automatically disable log4j JMX when detecting we are running on Android

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1611003 13f79535-47bb-0310-9956-ffa450edef68
LOG4J2-719 Correctly handle NetworkOnMainThreadException thrown on Android during Log4j2 initialization

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1611007 13f79535-47bb-0310-9956-ffa450edef68
Changed solution for LOG4J2-716 (auto-disable JMX on Android): prefer catching/ignoring errors to depending on system properties

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1611020 13f79535-47bb-0310-9956-ffa450edef68