Fixed namespacing and added api response caching

Uses lscache to cache api responses for 1 week.