Fix file headers and footer, add autoload cookie for mode

For package.el, the ";;; blah.el" lines must match the name of the containing file.