3859 Works don't have noindex meta when noindex preference is set
Merge pull request #1790 from sarken/issue_3859

3859 Works don't have noindex meta when noindex preference is set
codeshipe doesn't want a path
Merge pull request #1792 from zz9pzza/issue_4072

issue 4072 codeship doesn't want a path
Use Hash#find instead of Hash#each/break.
Split out sort_direction() helper method.
Split out build_options() helper function.
Combine two if statements in WorksController#set_author_attributes.
Hoist a condition duped in every branch to the top of WorksController#set_author_attributes.
Split out some helper functions for WorksController#set_instance_variables

I'm not sure about the method names, but it's far more readable to me,
now.
Split load_tags and redirect_for_tags helper methods out of WorksController#load_owner.
Replace a large if block with an explicit return earlier on.
unless/else -> if/else.
I made WorksController#update slightly prettier~
Split out WorksController#update_preview_mode helper function.
Deduplication ftw.
Use `saved` as the condition, as was done elsewhere.
Deduplicate some code in WorksController#marktoread.
Re-format a case statement to avoid the silly 18-space indent.
Cleaned up a few if statements in WorksController#new