add autoload cookies

This pull request adds autoload cookies, see http://www.gnu.org/software/emacs/manual/html_node/elisp/Autoload.html or http://www.lunaryorn.com/2014/07/02/autoloads-in-emacs-lisp.html.