Json

I've changed (somewhat drastically) forftanks.c so that if no arguments are supplied, it will accept JSON instead of using directories. Directory reading has also been re-written as an interface, rather than strewn through the main file.
I've also made some changes to the Makefile.