Moving event.debug logs into own file.
#5 login and logout implemented.