Add autoload cookies, fix package formatting

Needed for `package.el` to correctly parse the file.