Added HttpRequest.

Added HttpRequest, a wrapper for XMLHttpRequest.
Added Statistic gain methods.

Added Statistic gain methods. Similar to add methods, but fading
previous values.
Fixed Text.escapeXML and its use in Logger.
Build.