Get rid of AQuery.

As we're only using a tiny subset of its capabilities (image fetching
via HTTP), we can implement this functionality ourselves.
Improve commit fragment layout.
Make paddings consistent.
Properly remove trailing newlines in comments.