refactoring and changes to select launch profile per instance

This will allow us to deploy flashlight servers with a different
size and location than our lantern fallbacks.

Also allows enabling private networking where available.

The logic for finding out the local IP is centralized.

Some other cleanup.