Assortment of fixes to support https and older browsers