use htmlparser2's decoding maps

The goal is to make this browserifyable. As a result, HTML4 mode has to
be dropped. (I doubt anyone used it, anyway.)
added decodeCodePoint function
moved code around, use new maps, removed {en,de}codeHTML4

HTML4 methods are aliased as their HTML5 equivalent
updated tests
renamed compile.js to encode.js