Started work on TDD. More protocol stuff. Ported to Android Studio 0.2,
fixed gradle build settings.