Clean up memory registration for XNI(#18)

This should have all the xni memory registration code actually
matching what the XNI documentation indicates.