Add option to add a html class to select tag

Also cleaned up some of the code within the html_select method. Gave the select element an "id" equal to its "name" for easier javascript targeting. Enabled ability to set the resource_name as nil and just use a field name.