Move initialization earlier and make PragbotProtocol a standard linereceiver.