Add Settings api, and xpathCompression setting for Android