Updated this branch to be a library

I don't know how much labor will have to be put into making this a
standalone library, but it has been started. I cannot confirm how much
of this stuff actually works.

Also, Java RenderScript refactoring to remove unused kernels and
methods.