add messagepart base class

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>