Adds scaffolding for testing locally and tweaks to api