re-did packet system for terminal

Also moved access cod into TileEntityInv as i play to allow all GUI
based machines to be locked by the player.