allow for single-quoted JSON thanks to ALCE

also a bunch of small code cleanups

fixes #25