Implemented log buffering.

Added appengine.flushLogs API.
In addition to blocking, the Java runtime also clears the buffer before sending the flush requests and logs a warning in case of error. Is it worth calling console.warn in node.js? The docker logs are not that great a place to write to.