Working to fix foundation bug
Updated Foundation support, added auto-thumbnails and other fixes.