Added isCompatibleRuntime() method.

Added my name to LICENSE.
Removed / suppressed several warnings.
Some reformatting.
Inlined method invocation of method_getApplication(...)
Added a gradle build script and wrapper.