Added JSON loader and moved all XML loader and related classes into the
loader/dir.