At this point it basically works to:
Initialise everything for the audio session
Get the default mm/endpoint device
Get a list of all the currently open audio sessions
Register an events interface for the sessions
React to new sessions by adding them to the list
React to session events, currently just with print statements
Also removed most of the work done in the while loop.
This has been replaced by function calls to an external files
The loop work has been replaced largely by callbacks on session start or
stop.
This is not a working stage commit, just a small batch of changes.