insertOrderedList: Refactoring

* Renamed wrapByOrderedList to execInsertListCommand
* Separate processes in execInsertListCommand into some functions (processList, processNodeInList and so on)
It seems this re-factoring add 50+ lines.