Add check for empty handle
Rename P to self
wip. Add partial implementations of jsgeom binding