Loads of changes

The network manager now isn't useless,
there's a thread to keep an eye on the connection status,
reading and writing all data to the server with user authentication now
works,
there's a login system.