[MAT-329] remove any caching of JNIEnv pointers (even though safe, this is a preventive measure)
[MAT-330] delete local ref.
[MAT-329] refactor code to carry JNIEnv pointer through function args where possible.
Merge pull request #104 from OpenGamma/MAT-329

Mat 329/330