Centralize network settings

To make configuring / fiddling with network settings easier, centralize
them into a helper method, returning a hash w/ API + registry network
configuration.
Add caching to HA server lookups