Started logger code

Added a _very_ primitive logger system. Output to log file(s) code still
to be done, no need for that at the moment, though
Added relevant logging

Extended the logging code, added logging to the program, and fixed some
minor errors with the socket code