Return to previous state after allow_net_connect! with block

Snapshot config into a hash using an added WebMock::Config#to_h method…
the snapshot is used as a parameter to disable_net_connect! when a
block is sent to allow_net_connect!. This way the state is preserved
before/after the block is performed.