Support persistent history
Refactor history into plugin
Move CLS to plugin
Move CLH to history plugin
Implement plugin manager
Complete plugin base