Merge pull request #328 from psalaets/issue-294

Fix for #294
I've found a critical bug in `_bufferToString` for `localStorage`. Input buffer for `Uint16Array` should have even length!!
fix(localStorageDriver): fix odd length buffer serialization
refactor: abstract the serialization code to a separate file
Merge pull request #329 from thgreasi/odd-length-binary-fix

fix(localStorageDriver): fix odd length buffer serialization