v2 release

Rewritten in vanilla JavaScript, now can be used as a standalone server
or an Express middleware router.