Autoindent doesn't always occur

Currently autoindent only kicks in as so: 
```
<div>|</div>
```

This allows it to also work with:
```
<div>|

</div>
```
don't indent after closing tag
tidy up autoindent

use voidElements and double quotes.
autoindent from start of tag
autoindent tweaks

use camelcase and start line indent
Merge pull request #2198 from adamjimenez/patch-2

Autoindent doesn't always occur