This makes it easier to stub in tests. Also add a method to the iqdb proxy to say if it is enabled or not and use it everywhere.