Adds unit tests, fixes bugs

Adds unit tests. To run them, simply type `grunt`.

The following bugs have been fixed:

* Base64 image
* PRODID
* IMPP
* Strange iOS/Apple prefix `item1.ADR ...`