Java-fied unimplemented functions (throwing Exception instead of
returning -1). Almost have LoginPacket implemented besides crypto stuff.
Added serialization to Utils.