Moved ref_command.pl to ref_shell.pl
Move ref_pending.pl to ref_command.pl
Decoupled methods in charge of replay refactoring commands from ref_shell.pl