JSON downloads and a few new tricks. Fixes #3.