Add simple hash table implementation.
Remove stupid thread "resume_with_result" stuff.
Add simple reference counted buffer structure.