Adding Makefile for easy mocha testing. Added localhost.json config file. Refactored test-api.js