Restored flags commit
Merge pull request #103 from cesanta/flags_doc

Restored flags commit
Factor out iobuf into it's own module and increase test coverage