Some buffer implementation and basic command response framework.