Add validate method to xblock core.
Merge pull request #250 from edx/christina/xblock-validation

Introduce validation method and class in XBlock API