osd: fast transaction encode/decode

This is a rebase on top of latest master that resolves the fadvise hint conflicts.