Restore carousel functionality

Move the carousel code into its own javascript file, and reference it
appropriately. Similarly, stop embedding javascript in the footer of
each page.
Fix a few assets paths