API_ver1 finishing touches, added DELETE /instance, added /instance unit tests, fixed bugs, cleaned up