Finished first draft of automatic namespacing system with unittest. Fixes #2.