Add networks rest endpoint

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>