add Namespace class, basic functionality, tests

re. #26