Add build.js, major rewrite to ThePB.js, make it closer to KiwiIRC's code standards.