Added rack middleware to parse posted json data and fixed returns for api calls

added more swaps to ignore file.