Offline detector for making web apps more offline capable.