The Horde Application Framework provides classes for dealing with preferences, compression, browser detection, connection tracking, MIME, and more.