Fix CSS and JS dependencies. Upgrade to Foundaton 4.