update gradle build scripts to be consistent; cleanup AndroidManifest files

I saw NBS merged, and built my pull request on top of it. I only wanted for build scripts to be clean and consistent.
Final Manifest format is up to @akarimova, I can update my pull request if needed.