Fixes for packaging

- Fix some warnings from M-x checkdoc
- Put metadata in headers, not a `define-package` call
- Fix local variables hook lambda, which was calling a var as a function
- Remove redundant comparisons with `nil`: non-`nil` means true in elisp

See https://github.com/milkypostman/melpa/pull/1573