Implement web request filtering and a couple of small misc fixes