Logout handling

Logout handling is added. The character's position are loaded from the database upon login and saved upon disconnection/logout (are they even different?). I also cleaned up some stuff: trailing whitespace, network processor and interpreter use receive method better now.