Begin group inline questions code

New partial for group inline with initial row present.
Needs add and delete row button.
	modified:   app/controllers/questions_controller.rb - added render_group_inline_fields method

	new file:   app/views/questions/_group_inline_fields.html.erb - partial for group_inline

	modified:   config/routes.rb - route added for render_group_inline_fields

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js - added call to render
	group_inline_fields for :group_inline question_type

	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass
Add an add icon for  group_inline questions. Format as table.
	modified:   app/views/questions/_group_inline_fields.html.erb
	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass
Activated the add question button for group_inline questions
	modified:   app/controllers/questions_controller.rb -
	account for add_row parameter in render group_inline

	modified:   app/views/questions/_form.html.erb - force
	group_inline question_type to be selected if there is a group
	and its type is "inline".

	new file:   app/views/questions/_group_inline_field.html.erb -
	render one line of group_inline questions.

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js -
	add an add_row parameter to render group_inline

	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass
Stuck on stack level error
	new file:   app/controllers/question_groups_controller.rb - experimenting
	with moving the whole question type to a new controller.

	modified:   app/helpers/question_helper.rb - modified remove to specify
	a css selector to hide.

	modified:   app/models/permitted_params_decorator.rb - added questions_attributes
	to question_group

	modified:   app/views/questions/_group_inline_field.html.erb - pull a row into its own
	partial.

	modified:   app/views/questions/_group_inline_fields.html.erb - renders group_inline_field

	modified:   config/routes.rb - resources for question_group

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js - add param for remove_field
	to accept the dom to show or default to '.fields'.

	modified:   lib/surveyor_gui/models/question_group_methods.rb
Groups partially working

Inconsistently opening inline on start.  Text wrong.
Abandon approach and switch to using a group view.
	modified:   app/models/permitted_params_decorator.rb
	modified:   app/views/questions/_group_inline_field.html.erb
	modified:   app/views/questions/_group_inline_fields.html.erb
	modified:   lib/surveyor_gui/models/question_methods.rb
Group inline fields converted to a form based on question_group.

Instead of having a question editor only, adds a question_group
editor for group questions.  Right now, only for group_inline,
but all group questions should be refactored here and removed from
question editor.  Will simplify code in questions_method considerably.

Mostly working.  Need support for picks, and need support for
group_default.
	modified:   app/controllers/question_groups_controller.rb - moved
	render_group_inline here.

	modified:   app/controllers/questions_controller.rb - removed
	render_group_inline.

	modified:   app/models/permitted_params_decorator.rb - whitelisted
	various items in question_group.

	new file:   app/views/question_groups/_form.html.erb - Very much like
	_form for app/views/questions, except based on question_group as the
	top level model.

	new file:   app/views/question_groups/_group_inline_field.html.erb -
	Moved from questions and simplified.

	new file:   app/views/question_groups/_group_inline_fields.html.erb -
	moved from questions and simplified.

	new file:   app/views/question_groups/blank.html.erb - copied from
	questions.

	new file:   app/views/question_groups/edit.html.erb
	new file:   app/views/question_groups/new.html.erb

	modified:   app/views/questions/_form.html.erb - changed handling
	of group_inline question type - removed code to override value.

	modified:   app/views/surveyforms/_question_group.html.erb -
	modified edit_question button so that the ajax call will call
	a edit_question_group instead of edit_question.

	modified:   config/routes.rb - add routes for question_group

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js -
	call render_question_group for group_inline questions.  Instead of
	partially replacing form, redirect to replace the whole colorbox window.
	Do the same when switching back to question editor.

	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass

	modified:   lib/surveyor_gui/models/question_group_methods.rb -
	add methods to get survey_section_id and is_mandatory.

	modified:   lib/surveyor_gui/models/question_methods.rb - don't
	override question text if group_inline.
Add answer_textbox to group_inline to support picks
in groups.

	modified:   app/views/question_groups/_group_inline_field.html.erb -
	Added answer_textbox input.

	modified:   app/views/question_groups/_group_inline_fields.html.erb -
	added heading for "Possible Answers" in the questions header.

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js -
	added calls to show or hide answers_textbox depending on the question_type
	represented by a row in the group.

	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass
Remove group_inline partials from questions/ and correct answers_textbox

Show and hide answers_textbox for group_inline regardless of whether
row was added or showed up by default.
	modified:   app/controllers/question_groups_controller.rb -
	fix a typo.

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js
	renew event for group question question_type change when adding row.

	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass
	deleted:    app/views/questions/_group_inline_field.html.erb
	deleted:    app/views/questions/_group_inline_fields.html.erb
group_inline working
	modified:   app/controllers/question_groups_controller.rb - deal with
	display_order.

	modified:   app/views/question_groups/_form.html.erb

	modified:   app/views/question_groups/_group_inline_field.html.erb -
	put back display_order.

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js -
	pass display_order to render_question_group and render_inline_group_fields.

	modified:   lib/surveyor_gui/models/question_group_methods.rb - change
	build_complex_queries - or statement on answer_textbox.  answer_textbox must both exist
	and not be part of a pick none question to evaluate true.

	modified:   lib/surveyor_gui/models/question_methods.rb - remove survey_section_id
	methods.

	modified:   lib/surveyor_gui/models/question_type_methods.rb - whitespace
Intermediate commit for group_default question type.

Added group_default question type, but not yet able to
switch display_type in group from "inline" to "default"
	modified:   app/helpers/question_helper.rb - add one more row
	to question types array.

	modified:   app/views/question_groups/_form.html.erb - add
	new question type.

	modified:   app/views/questions/_form.html.erb - add new question
	type.

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js -
	remove obsolete code in show_answers.

	modified:   lib/surveyor_gui/models/question_group_methods.rb -

	modified:   lib/surveyor_gui/models/question_type_methods.rb - add
	group_default question type.
Error formatting on rows in question editor.
	modified:   app/models/permitted_params_decorator.rb - leftover change
	from last commit

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js - fix
	syntax error.

	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass
Basic group_default and group_inline functionality working.

Missing some things.  Correct display ordering within group.
Ability to change display order.
Prefix and suffix for questions.
Ability to switch back and forth from group to non-group question
types.

	modified:   app/controllers/question_groups_controller.rb -
	pass question_type_id to forms.

	modified:   app/helpers/surveyform_helper.rb - update
	question_group_heading method to take some additional code out of
	form and to account for non-grid groups.

	modified:   app/views/surveyforms/_question_group.html.erb -
	simplify call to question_group_heading.

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js -
	pass question_type_id to question_group controller.

	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass

	modified:   lib/surveyor_gui/models/question_group_methods.rb -
	modify question_type_id setter and getter.  Pass on question_type_id
	to form if set in the controller, and when retrieving question_type_id
	in setter, update display_type accordingly.
Fix group_inline, group_default display_order
	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js -
	search for display_order.last() instead of first().
Maintain display_order when switching between group based and solo questions on question editor.

Also pass text too.
	modified:   app/controllers/questions_controller.rb - accept
	display_order from params if prev_question not known.

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js -pass
	question.text /  question_group.text when switching back and forth
	between group and solo question_types.

	modified:   lib/surveyor_gui/models/question_methods.rb - minor rearrangement
	in order of appearance of methods.  No functional effect.
Get group questions to seamlessley change question types.
	modified:   app/controllers/question_groups_controller.rb - after
	saving a question group, destroy the original question whose type
	was switched to group.  I.e., if starting with text question 121,
	switching to group_default, adding some questions, and saving, remove
	question 121, so there is not a text question remaining after the switch.

	modified:   app/views/question_groups/_group_inline_field.html.erb -
	remove hidden field for id.

	modified:   lib/assets/javascripts/surveyor_gui/surveyor_gui.js - fix error
	in retrieving question_id, and check to see if the original question can still be found
	after editing a group and returning from ajax call.  The original question
	will be gone if user switched from non-group
	question to a group question.  In this case, instead of refreshing just the question on
	the surveyform, refresh the entire section.

	modified:   lib/surveyor_gui/surveyforms_controller_methods.rb - add a check to replace_question
	to ensure the question can be found. If not, return inline text with error message.
Fix updating of questions within group.
	modified:   app/controllers/question_groups_controller.rb - only remove the original_question
	if it exists and was replaced with a new question.

	modified:   app/views/question_groups/_group_inline_field.html.erb - add question.id
	so questions can be updated.

	modified:   lib/surveyor_gui/models/question_methods.rb - force the questions record to be dirty
	when answers_textbox changes by changing the updated_at attribute.
Add stars and sliders to group questions.

	modified:   app/views/question_groups/_group_inline_field.html.erb -
	add empty method for _build_stars.

	modified:   lib/surveyor_gui/models/question_type_methods.rb - add
	stars and sliders
Fix formatting of group_default sliders and stars.
	modified:   app/helpers/surveyform_helper.rb - check for group_default
	and add a class "default" to distinguish from grid and inline.

	modified:   app/views/surveyforms/_question_field.html.erb - add a wrapper
	div around slider.

	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass
Add file upload as a question type in group questions.

	modified:   app/views/question_groups/_group_inline_field.html.erb
Start making question_group questions sortable.
	modified:   app/views/question_groups/_form.html.erb - add .sortable_questions

	modified:   app/views/question_groups/_group_inline_field.html.erb - add
	drag icons.

	modified:   lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass