* Move the error handling into commons and make sure the error returned also returns message errors * Make the protocol version an int so it can be more easily compared