Vendor flatdoc and others to deal with HTTPS issues in Chrome

Explicitly uses HTTPS for client side requests and vendors outside scripts for enhanced security and control. These changes were needed for Chome's strict SSL policy.