cleanup global namespace, move HTTPSB-related stuff to HTTPSB object