lib/bnet: beginnings of a library for handling Blizzard's API

+ tried to genericize a lot of the code
- needs testing
lib/bnet: ironed out initial set of library bugs