Add cipher config, allowing easy upgrade process to 2.2

Signed-off-by: crynobone <crynobone@gmail.com>
Add local config to enable debug mode.