Network autoresolve

If no network-ids specified in configuration this will attempt to resolve them using network attributes 'router:external' and 'shared'. Also includes commits from PR #4.