Thank you guys, Great ansers. I learned much more than I asked.
I had no idea there was all that documentation availbale and I had no idea there was a restful api for the web manager, although I could have guessed. The /status api looks really useful.