Caching
API tweaks

API returns DAPI JSON array, added apitest() function, other tweaks