Simplify the code; check for curl; add -z option for -e, enabling the
use of 0.0.0.0 instead of 127.0.0.1. Fix modes, had to set domains to
false.