merged reqperhulk's c2829b3, 0f62748

(preliminary SSL fix for atv update.)
(Modify the webserver to use threads)
plus some goodies like default settings, sleep()