Added append/replace buffer code when packets are over size.
More updates, includes abstracted command handler.  Will be further abstracted soon.