Refactor how IGMP queries are sent and how the router alert IP option is set

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>