Make sure that livereload works on other machines

Instead of always pointing to localhost we get the host url from the
request. This means you can open the thing you're serving on another
computer or mobile device by visiting your network IP address and
livereload will magically work across all devices.