separate out update_device_index
add interfaces structure and api
make gram.y globals local
indent to fixup code style
add dup_config.sh test

This makes sure radvd quits if an interface appears more than once
in the config file.