Add support for JSON dependencies.

Upgraded deps and performed cleanup.
Fixes #13.