insertOrderedList: Refactoring

* Renamed wrapByOrderedList to execInsertListCommand
* Separate processes in execInsertListCommand into some functions (processList, processNodeInList and so on)
|i| is just an index. Can't we use one letter variable in this case?