Fix momentum scrolling and scrollbars for iOS devices

Removes the flexbox layout and just makes #main the only div on
the page to simplify browser rendering.
Clamp content images to the size of the div
Fix search box adding extra body padding to page in small-layout
Fix page overflow properties in IE/Firefox
Update TOC to take full-width on small windows
Preload popover nav iframe