started API and implementation for user friendly access to node type definition and manipulation #1
finalized first version of node type api and added a simple test. issue #1