Reorganised
Added apache codecs for Base64 encoding
Added logging
Now uses logging, close socket when connection is lost
Implemented logging
Implemented Encryption