Remove last <br/> tags inside a li.

Evernote likes to break everything by sometimes adding extra <br/> right before the </li> or <ul> tags, adding some weird spacing when on markdown.
Changes the way we "uglify" html code, fixes <code><pre> blocks.

Previously we were using a very aggressive way of removing new lines. This completely messed up with code blocks, using BeautifulSoup we can do it in a intelligent way.
Fix editor.py for windows users

Calling gnsync under windows raises:

> Error while parsing text to
html.
> Content must be an utf-8 encode.

Global name 'self' is not
defined on line 85 in editor.py
I replaced it with a straight call
to the Editor object.

---

-2 typos :-)
Merge pull request #170 from MarioRicalde/smarter-uglify

Changes the way we "uglify" html code, fixes <code><pre> blocks.
Merge pull request #169 from MarioRicalde/li-br-cleaner

Remove last <br/> tags inside a <li>
Merge pull request #172 from jpbourgeon/master

Fix editor.py for windows users
Merge pull request #175 from ashumkin/master

Fixed typo