Added an HTTP_ACCEPT constant and other minor tweaks.