NOBUG: Make globals static public for reuse.
NOBUG: Tidy library code a bit.
CONTRIB-4696 Support distributed 3rd part lib xml

Since Moodle 2.6 we have split the old, unique thirdpartylibs.xml
file, distributing it along codebase for plugins having their own libs.

This patch addresses:

- Support those distributed xml files.
- Do it conditionally, so it will continue working against old branches.
- Fix a existing problem about some paths being generated wrongly in the past.
- Debug information about any incorrect path defined in the xml files
Merge pull request #13 from stronk7/CONTRIB-4696

CONTRIB-4696 Support distributed 3rd part lib xml
Bump to 2013101800 (v2.2.9)
CONTRIB-4705 Convert txt files to markdown.

In order to achieve better readability both in github and moodle.org.
Merge pull request #14 from stronk7/CONTRIB-4705

CONTRIB-4705 Convert txt files to markdown.
All files must end with a new line character
Fixture for end of file tests
Donot allow consecutive multiple empty lines