Work in progress: Fix lint warnings

Now that we can lint without being exposed to all the AppCompat stuff, it's a good time to go through some of the warnings.
Each commit should be carefully reviewed. There will be more coming, so please don't merge yet.