Refactored to generate R.java in correct place.
Added login packet.