Made server compatible with both protocol 1 and protocol 2 clients.

- Server uses old (flawed) OCRA implementaiton for older protocol 1 (ascii) clients.
- Uses new (compatible with final RFC) OCRA implementation for new protocol 2 (json) clients.

Work is completed for Android and Server. iOS will follow shortly.