Parse response code in common super class

All status replies can take an optional response code. Parsing these
response codes are done the same no matter which reply it is attached
to. Add a common super class for all status replies, which takes care of
the parsing.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>