add RegisterNamespace and GetNameSpaceIndex methods.Add more  tests for ...

...null pointers in OPCUAServer

I am not sure how  GetNamespaceIndex should handle not found uris... 
* I hate using output arguments...
* returning -1 as int would confuse since index is expected to be uint in most places
* exception is overkill ..