Add most function to login interface in login.c
Move global variables to interfaces in login.c
Add support for use plugin interfaces in login server.
Fix login_interface for allow generate hooks from it.
regenerate hooks.