Issue 24

I believe this adds (sane) validation to libtaxii. I'd like another set of eyes on this before I merge it since there's ~1000 LoC in the change.