Use 'android-library' plugin

Also includes substantial refactoring of the gradle scripts.
Remove use of AsyncTask, use fixed thread-pool
Fix lint "allowBackup" warning
Refactor to use Builder pattern