They are all just starting places for what you want to do, but these are informational ones:
Source code for the serverinfo HTTProvider:
http://community.wowza.com/t/-/60
The source code for connectioncounts:
http://community.wowza.com/t/-/84
Richard