Use thiserror and anyhow for error handling
thiserror, especially, reduces the amount of boilerplate code to deal with different errors. anyhow is less useful, but still simpler than using custom code I feel.
Fixes #28 (closed)
Edited by Lars Wirzenius