Add some validation code

* namespace.el (namespace--validate, namespace--validate-ns)
(namespace--validate-qsym, namespace--validate-unique): New.
(namespace--define,  namespace--add-internal): Use it.