Configure bridge and nat for jails. For every jail, if router is specified, add it, if bridge ip is specified, configure bridge with alias, if no router specified and bridge ip is, use it as default route for jail. Also fire up ipfw and natd so jails can access the internet.