core: Emacs23 compatibility

This adds partial Emacs23 compatibility. A few things like magithub,
js2-mode, undo-tree and yasnippet are disabled for Emacs23, but the rest
are there.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>