Catch-all handler in main() to report to stderr.
Use uniform initalization and scoped C-routines
Add stub for storage
Stub for file-based storage