Main: At least compile-unbreak packet parsing.
Start adding in code for handling the login state.