More improvements off the webui
Add a simple exit method and remove the use of daemon

 * Also, fix crash when user gives wrong password.
   Instead ask for authentication again
Remove the daemon module
Add some testing for the config module