add mediaslice.lua
add cached_response api