config handling and some minor cleanup

Now you can select a network interface on launch instead of hardcoding addresses in index.html