Add 'pry-rails' for develop
Assign allowed options.
Keeping options in params if it would switch ref.
Refactor: remove dup code.

Delete Refscontroller#define_tree_vars, because it is same with
assign_ref_vars.