Login server has a configuration file

Put code from login server's main.cpp and capsuled it inside the new
Program class which can be shut down and restarted.