set CM mode based on filetype being displayed

initial support just for existing diff and added js.
autoload CM modes and setup mappings common types

for now just map the most common file extensions I use