Moved update logic for site and binary into their own files.
Format code.