Add empty() to IOStream::Device and drivers
Check that empty() works
Make IOBuffer::empty virtual
Fix CosaIOBuffer testing of gets()

As recommended by Mikael.
Merge pull request #255 from jediunix/IOStream-empty

Add empty() to IOStream::Device and drivers