Changed file type checkers to support different types
Changed file type checkers to support different types

Stopped using `profile.editor.regExp` because regular expressions didn't
seem to save too well in local storage.

Moved the original file type check function into a higher scope.

By default the editor uses GFM, and has 3 file types. Because HTML has 2
file types, whenever you switch over to HTML then refresh the page,
jQuery will 'merge' the two arrays together (via $.extend) and instead
return ['.html', '.htm', '.mdown'] rather than just ['.html', '.htm']

run-project/dillinger,jeremiahmarks/dillinger,ojengwa/dillinger,baxrob/dillinger,run-project/dillinger,un33k/dillinger,jiusanzhou/dillinger,Stackato-Apps/dillinger,ojengwa/dillinger,mtvillwock/dillinger,joemccann/dillinger,johnko/dillinger,WhoRain/new,joemccann/dillinger,glaucomorais/dillinger,glaucomorais/dillinger,scalp42/dillinger,jiusanzhou/dillinger,hhgz9527/dillinger,pat-riley/dillinger,TangHao1987/dillinger,Stackato-Apps/dillinger,seripap/dillinger,misterbisson/dillinger,CJstar/dillinger,johnko/dillinger,jeremiahmarks/dillinger,un33k/dillinger,baxrob/dillinger,dasJ/dillinger,hhgz9527/dillinger,pat-riley/dillinger,dasJ/dillinger,seripap/dillinger,salipro4ever/dillinger,benjamin-albert/dillinger,benjamin-albert/dillinger,salipro4ever/dillinger,TangHao1987/dillinger,scalp42/dillinger,saitodisse/dillinger,CJstar/dillinger,misterbisson/dillinger,saitodisse/dillinger,joemccann/dillinger,jesusmaldonado/dillinger,jesusmaldonado/dillinger,WhoRain/new,mtvillwock/dillinger,jiusanzhou/dillinger