Working on the caching engine and logic router

Signed-off-by: Cade <me@cade.jp>