Command to close currently unclosed tags

I've added a command to auto-close tags and bound it to cmd-alt-. .

For instance:
```html
<html>
  <head>
  </head>
  <body>
    <p>By selecting the command (or activating the cmd-alt-. key binding) 
      <a href="some url">in this position, the command would close the "a" tag;  pressing it 
           again, it would close the "p" tag; pressing it a third time nothing would happen (all 
           other tags are closed in the remaining of the document).
</body>
</html>
```

The command works by  identifying the last opened tag that has not yet been closed (at the cursor position). Than checks if in the  part of the html document following the cursor  the found tag is closed. If a closing tag is not found, it then it insert the closing tag at the current cursor position.


Ok. This is what I believed (but wanted to be sure about that). The current code comply with this.
In the meanwhile I found the time to improve the specs and fix a bug.