Fix ./runtests so the command-line options work as expected i.e.
./runtests runs provider-agnostic tests only (tests/general, tests/imap)
./runtests -i runs IMAP-specific tests only (tests/imap but not the network tests)
./runtests -a runs all tests.

Also update tests in tests/imap/network.