Add autoload cookies

With these lines present, users will not normally need to `require` hamlet-mode in order to use it.

It's idiomatic to modify `auto-mode-alist` after the mode declaration, so this commit moves the modification code lower in the file.