Enable AOSP builds

Building within the AOSP is currently impossible. The attached changes restore the functionality by building k-9 and its plugins in one run within AOSP. There are also 2 new dummy/default methods to comply to the latest API.