allow contracts to be disabled with ENV variable

This PR allows for contracts to be disabled by setting an environment variable, `DISABLE_CONTRACTS`. This feature is useful to have if you want to make sure contracts is disabled for some environments but not for others (like dev vs production).