Added sessions and packet handling, still need to work on encryption to
get the correct packet opcodes