Move cache_manager and task_error into base/