-find a way to prioritize the index/message download threads. Perhaps these threads could tell other threads to pause? the discover -> age check -> index -> messages -> timestamp script should not be interrupted when one of the steps takes longer -file deletion or time to live (client side?) -prevent WebSheet (ios) and etc captive portal to hijack the client connection ;) -perhaps replace the functionality of self.devices with something based on crawling nodes/hash/ # Cryptoshit encrypt / decrypt: http://www.davedoesdev.com/a-simple-and-consistent-wrapper-for-javascript-crypto/ generating keys: https://bitbucket.org/adrianpasternak/js-rsa-pem/wiki/Home