Initial whack at auto updating. This works on Linux and Mac, but on
windows there are still locking problems.