Add struct pointer helpers
First part of DOM Core Level 1 implementation

Goal is to support Level 1 flat Node API, using C helpers to get
struct information where necessary. TODO: implement object
interface.