agent: Support -advertise cli flag. Fixes #156.