Add library tests
Fix EOL to be dos or unix not both in same file.
Replace tabs with 4 space indent.
Fail with error rather than silently on storage init problems.
Merge pull request #294 from hindessm/trivial-whitespace-fixes

Trivial whitespace fixes
Merge pull request #292 from hindessm/handle-storage-error

Fail with error rather than silently on storage init problems.
Merge pull request #291 from hindessm/test-library

Add library tests