#162: Add app log functions (equivalent to console.log, console.warn, etc.).
#162: Log exceptions in JavaScript.
Log exceptions in JNI calls.