(bug 49263) Introducing SnakValidator.

This is to be used for validating snaks in the API.

Change-Id: I7378838f9ab22a52261d79af6690f531f0f1ee2b