adds errors in middleware to subclass django errors so that correct status codes are still raised even if middleware isn't installed
changes errors defined in ab_testing_tool to use new dual-errors