Improve security module interface
Change the way register handler works in main.js, improved.
Add draft support for bans