fixing json rendering
adding cache-keys as constants
removing clear_cache method from ApiController
adding/removing/replacing objects in cache
fixing offices controller