Node types functionality

- Adding nodetypes to xdi constants
- Adding getNodeType() function to the xdi.util