Make some args const
Add IREADY unsolicited result code

Fix #11, #16.
Fix extended format responses in V0 mode, add unit tests.

Fixes #17.