Handle some syntax errors

* On start it checks that node is installed and executable. If not gives a meaningful error.
* When formatting multiple lines try first to format the whole line and in case of error, only the selection