Move the footer JS templates

Migrate them out of the footer, and have them echo on a hook.
Pinking shears
Default stuff to on if in development mode, so we don't show the connect nag.