update project to later android studio and tools
move ndk stuff into a library module
use the gradle build process