StreamService & various warning cleanup

Basically, this PR comes down to many (subjective) commits to ease readability for me. I also commented a lot of stuff, and fixed a bug/warning or two. If I did something which doesn't make much sense to you, please hit me on it. I'm still very much in diapers here.