Added parsing for the listeners defined in api-sources.txt
Added a new leaktest which uses listeners (made by Stephan)