insertOrderedList: Refactoring

* Renamed wrapByOrderedList to execInsertListCommand
* Separate processes in execInsertListCommand into some functions (processList, processNodeInList and so on)
nit: Let's try to avoid one letter variable name.