Improve sample code

- introduces one-line `toString()` for the `Device` class, renaming the old implementation
- uses the new name of the android-gradle-plugin in the sample's buildscript
- simplifies some of task definitions in the sample's buildscript