Add semantic_version.validate (Closes #2).

Simple way of testing whether a string is a 'valid' SemVer version.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>