[Emacs] Various fixes

- Autoload major mode and auto-mode-alist
- Use define-derived-mode instead of hand-rolled mode function
- Inherit faces from standard outline-* faces by default
- Fix (almost all) byte compilation warnings
- Fix some docstrings