rewrite eol-last rule (fixes #1007) (fixes #1008)

Fixes #1007 and #1008. Related: #997, https://github.com/eslint/eslint/issues/1005#issuecomment-46745516
"Unexpected blank line at end of file."