Added logging to all libraries and version check

Login server now checks client's version, and disconnects if it is not
correct.
Fixed small bug in Manifestation, where it did not clear the internal
list of patchfiles when creating a new manifest.