IDEABKL-6897 Enter inserts closing brace in wrong place

 - revert changes that led to bug
(cherry picked from commit 6a78643c461cc651028375d59e48f82bb703f5ed)
IDEABKL-6897 Enter inserts closing brace in wrong place

 - restore proper behavior in css files
(cherry picked from commit 8f3d9622bacaa77ef7130e881ec72f7f4ef5d688)

r:vokin
WEB-9383 Hide Emmet's CSS options when CSS file type is not registered
WEB-9369 Enable/disable Emmet based on language
(cherry picked from commit 3a8ab756f588bf4d2224c064ca4e6ba3178a4243)

r:vokin
Emmet: fix OOBE
(cherry picked from commit 9211e8cd34f2519705e0c60f27d227b97563a19f)
RUBY-14069 Expand template does not work properly match back to method delim in ruby
(cherry picked from commit e0d6c56437a676818df59923e0a66e0389b2a63d)

r:peter