[WIP] Move IP whitelist into vault file.

Fixes #832.

Do not merge yet; testing in progress.