Upgrade Gradle plugin to 4.1.1
This branch updates the Gradle plugin and the AndroidX and Kotlin dependencies. Gradle Witness is also updated because the old version was mishandling dependencies between modules (projects in Gradle lingo). A few lint errors are fixed, along with any warnings in the same files that were easy fixes.