Validation

Added all headers, full validation message handler and some tests.