Add proper file headers, partly merged from ELPA.