Add ftplugin and ftdetect for ruby

Simplify vimrc and move filetype settings where they belong.