Helper function for extensions adding new actions (and associated functions)
to the target module
Fix jshint issue
Remove module sort and add documentation of functions parameter
Merge pull request #2054 from andersdd/4_8_x

Helper function for extensions adding new list actions to module