Load plugin code files by order of appearance.

- old behaviour: file name length
- added test for plugin discovery
Merge pull request #763 from codeburg/plugin_code_load_order

Load plugin code files by order of appearance.