Adding support for class attribute to select_field function
Adding support for custom content type and more reponse codes