Adds support for gzipped userdata content

Handles transparent gunzipping of userdata content.
Minor refactoring for constant

Renames _part_handler_content_type to _PART_HANDLER_CONTENT_TYPE.