Initial work on #227 - improve storage efficiency of provider API
Fixs for WebSQL, remove ensureBuffer(), fix truncate/ftruncate to read Buffer
Add test for zero-length buffers with getBuffer/putBuffer
Merge pull request #253 from humphd/issue227

Fix #227 - improve efficiency of provider API