Implement support for the splits API.

- Update build tools and android gradle plugin version while we are at it.