Log most HTTP requests.
Fix some basic bugs.
Added javadoc.