Added missing include
Also reworked the AppClient class (to use AppTransport)