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
Merge pull request #1 from purcell/patch-1

Fixes for packaging