Moved most of the data parsing to MCBuffer
Added byte writing functions to MCBuffer and used it to generate packets
Simplified packet writing
Different packets for different states, handle state transition to "login"
Fixed state changes and added 0x00 null packet for state 1
Changes in con state, read state 2 packet 0x00. Moved main server object to global
Fix connection error event
Added new value type int16_array and encryption response packet

also fixed varint reading
set serverID to 16 bytes and added hardcoded encryption request packet
Added BigInt module
Using BigInt to generate RSA public key
Moved RSA related variables to an object
Implemented RSA decrypting using private key data
added writeDouble and writeFloat to MCBuffer
Handle state: 3 packet 0x15 and read "uint8" values
Handle AES-128-CFB8 input/output encryption with streams
Added readDouble and readFloat to MCBuffer
Handle more packets (Player Position And Look, Plugin Message)
Handle "Player position" packet
Fixed the sending of the last packet to make player spawn