Adds whitelist for NetStream loading; refactors baseURL logic