webadmin: Refactored edit host network code

There was a lot of common code between the supposedly different
dialogs of Edit (Host) Network and Edit Management Network, so I
unified it.

Change-Id: If78775d9cf038820cb164b9a52d7f47b58fea6b6
Signed-off-by: Lior Vernia <lvernia@redhat.com>