Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Unless the name color algorithm been changed again since I last updated it, it should still be up to date. The reason I held back on updating it for so long was that the valid ranges for name colors became a fair bit more complicated. I think I just gave up and made it pop up a message noting...
In terms of parsing the output, you shouldn't have much issue. In the actual battle room on PS, the protocol is written directly to the console. If you're looking at it via a replay, you should be able to find a script tag with a class of "log" in the page source. Inside that tag you'll find the...